mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-05 14:40:20 +09:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user