Clarify the Find operation being regex-enabled (#1561)

This makes it more obvious that the Find option accepts regular
expressions as input.

See discussion in #1560.
This commit is contained in:
Hugo Locurcio
2020-03-24 15:59:40 +01:00
committed by GitHub
parent ee157f6503
commit cd379cd838

View File

@@ -774,7 +774,7 @@ func (h *BufPane) saveBufToFile(filename string, action string, callback func())
// Find opens a prompt and searches forward for the input
func (h *BufPane) Find() bool {
h.searchOrig = h.Cursor.Loc
InfoBar.Prompt("Find: ", "", "Find", func(resp string) {
InfoBar.Prompt("Find (regex): ", "", "Find", func(resp string) {
// Event callback
match, found, _ := h.Buf.FindNext(resp, h.Buf.Start(), h.Buf.End(), h.searchOrig, true, true)
if found {