mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-16 13:57:07 +09:00
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user