Skip to content

Commit

Permalink
Always remove the sign column when disabling gitgutter.
Browse files Browse the repository at this point in the history
Previously with `gitgutter_sign_column_always = 1` the sign column would
remain after calling `GitGutterDisable`.  Now the sign column is always
removed when disabling gutter.
  • Loading branch information
airblade committed Apr 10, 2013
1 parent 9b45af6 commit fe1a769
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugin/gitgutter.vim
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,10 @@ function! s:add_dummy_sign()
exe ":sign place" s:dummy_sign_id "line=" . (last_line + 1) "name=GitGutterDummy file=" . s:file()
endfunction

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

" }}}

" Public interface {{{
Expand Down Expand Up @@ -424,6 +428,7 @@ command GitGutter call GitGutter(s:current_file())
function! GitGutterDisable()
let g:gitgutter_enabled = 0
call s:clear_signs(s:file())
call s:remove_dummy_sign()
endfunction
command GitGutterDisable call GitGutterDisable()

Expand Down

0 comments on commit fe1a769

Please sign in to comment.