diff --git a/cmd/micro/bindings.go b/cmd/micro/bindings.go index 437cb618..dd028d34 100644 --- a/cmd/micro/bindings.go +++ b/cmd/micro/bindings.go @@ -667,7 +667,7 @@ func (v *View) FindNext() bool { } else { searchStart = ToCharPos(v.cursor.x, v.cursor.y, v.buf) } - messenger.Message("Find: " + lastSearch) + messenger.Message("Finding: " + lastSearch) Search(lastSearch, v, true) return true } @@ -679,7 +679,7 @@ func (v *View) FindPrevious() bool { } else { searchStart = ToCharPos(v.cursor.x, v.cursor.y, v.buf) } - messenger.Message("Find: " + lastSearch) + messenger.Message("Finding: " + lastSearch) Search(lastSearch, v, false) return true } diff --git a/cmd/micro/search.go b/cmd/micro/search.go index d457ba1b..1ad9b069 100644 --- a/cmd/micro/search.go +++ b/cmd/micro/search.go @@ -1,8 +1,9 @@ package main import ( - "github.com/zyedidia/tcell" "regexp" + + "github.com/zyedidia/tcell" ) var ( @@ -29,6 +30,9 @@ func EndSearch() { messenger.hasPrompt = false messenger.Clear() messenger.Reset() + if lastSearch != "" { + messenger.Message("^P Previous ^N Next") + } } // HandleSearchEvent takes an event and a view and will do a real time match from the messenger's output