Skip to content

Commit

Permalink
Always clear previously overlayed highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Aug 18, 2010
1 parent ce4fd06 commit 62942b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload.vim
@@ -1,6 +1,6 @@
" Vim script.
" Author: Peter Odding <peter@peterodding.com>
" Last Change: August 16, 2010
" Last Change: August 18, 2010
" URL: http://peterodding.com/code/vim/lua-inspect/
" License: MIT

Expand Down Expand Up @@ -167,6 +167,7 @@ endfunction

function! s:clear_previous_matches() " {{{1
" Clear existing highlighting.
call clearmatches()
for group in keys(s:groups)
let group = 'luaInspect' . group
if hlexists(group)
Expand Down

0 comments on commit 62942b0

Please sign in to comment.