Skip to content

Commit

Permalink
Bug fix: Highlight :SearchNotes matches case insensitively
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Nov 3, 2011
1 parent 913807b commit 8583afe
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions autoload/xolox/notes.vim
Expand Up @@ -6,7 +6,7 @@
" Note: This file is encoded in UTF-8 including a byte order mark so
" that Vim loads the script using the right encoding transparently.

let g:xolox#notes#version = '0.12.4'
let g:xolox#notes#version = '0.12.5'

function! xolox#notes#shortcut() " {{{1
" The "note:" pseudo protocol is just a shortcut for the :Note command.
Expand Down Expand Up @@ -483,7 +483,9 @@ function! s:internal_search(bang, pattern, keywords, phase2) " {{{2
call xolox#misc#msg#warn("notes.vim %s: No matches", g:xolox#notes#version)
return
endif
let pattern = a:phase2 != '' ? a:phase2 : pattern
if a:phase2 != ''
let pattern = a:phase2
endif
else
call s:vimgrep_wrapper(a:bang, a:pattern, xolox#notes#get_fnames(0))
let notes = s:qflist_to_filenames()
Expand All @@ -509,7 +511,7 @@ function! s:internal_search(bang, pattern, keywords, phase2) " {{{2
silent cwindow
if &buftype == 'quickfix'
setlocal ignorecase
execute 'match IncSearch' pattern
execute 'match IncSearch' substitute(pattern, '^/', '/\\c', '')
endif
call xolox#misc#timer#stop('notes.vim %s: Searched notes in %s.', g:xolox#notes#version, starttime)
if &verbose == 0
Expand Down

0 comments on commit 8583afe

Please sign in to comment.