mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-25 18:07:07 +09:00
Implemented 'ResetSearch' to allow a search to be resetted
Added ResetSearch to the list of bindable actions in keybindings.md
This commit is contained in:
@@ -1072,6 +1072,15 @@ func (h *BufPane) UnhighlightSearch() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// ResetSearch resets the last used search term
|
||||
func (h *BufPane) ResetSearch() bool {
|
||||
if h.Buf.LastSearch != "" {
|
||||
h.Buf.LastSearch = ""
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// FindNext searches forwards for the last used search term
|
||||
func (h *BufPane) FindNext() bool {
|
||||
if h.Buf.LastSearch == "" {
|
||||
|
||||
Reference in New Issue
Block a user