Skip to content

Commit

Permalink
using v:hlsearch instead of &hlsearch(hlsearch improvements)
Browse files Browse the repository at this point in the history
  • Loading branch information
kassio committed Mar 25, 2014
1 parent b6799f1 commit b9b8c0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/ack.vim
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ endfunction

function! s:highlight(args)
if g:ackhighlight
set hlsearch
setlocal hlsearch
let @/ = substitute(a:args, '["'']', '', 'g')
call feedkeys(":let &hlsearch=1\<CR>", "n")
call feedkeys(":let v:hlsearch=1 \| echo \<CR>", "n")
endif
endfunction

Expand Down

0 comments on commit b9b8c0a

Please sign in to comment.