Skip to content

Commit

Permalink
Prevent error message from showing when s:dummy_sign_id is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
fitztrev committed Apr 24, 2013
1 parent 935184b commit ff031d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugin/gitgutter.vim
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,9 @@ function! s:add_dummy_sign()
endfunction

function! s:remove_dummy_sign()
exe ":sign unplace" s:dummy_sign_id "file=" . s:file()
if exists('s:dummy_sign_id')
exe ":sign unplace" s:dummy_sign_id "file=" . s:file()
endif
endfunction

" }}}
Expand Down

0 comments on commit ff031d0

Please sign in to comment.