mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-18 21:31:00 +00:00
parent
db26b5fee5
commit
399134fe5b
1 changed files with 3 additions and 0 deletions
|
|
@ -987,6 +987,9 @@ func (h *BufPane) find(useRegex bool) bool {
|
|||
}
|
||||
}
|
||||
pattern := string(h.Cursor.GetSelection())
|
||||
if useRegex && pattern != "" {
|
||||
pattern = regexp.QuoteMeta(pattern)
|
||||
}
|
||||
if eventCallback != nil && pattern != "" {
|
||||
eventCallback(pattern)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue