mirror of
https://github.com/zyedidia/micro.git
synced 2024-09-17 15:07:41 +03:00
parent
db26b5fee5
commit
399134fe5b
@ -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 New Issue
Block a user