mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-31 14:22:33 +00:00
Make searches case insensitive
This commit is contained in:
parent
ccf1dfabbc
commit
d57e47349b
1 changed files with 1 additions and 1 deletions
|
|
@ -310,7 +310,7 @@ func (self *Handler) do_search(query string) {
|
|||
if !self.current_search_is_regex {
|
||||
query = regexp.QuoteMeta(query)
|
||||
}
|
||||
pat, err := regexp.Compile(query)
|
||||
pat, err := regexp.Compile(`(?i)` + query)
|
||||
if err != nil {
|
||||
self.statusline_message = fmt.Sprintf("Bad regex: %s", err)
|
||||
self.lp.Beep()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue