mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 12:03:48 -05:00
Always remove the sign column when disabling gitgutter.
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.
This commit is contained in:
@@ -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()
|
exe ":sign place" s:dummy_sign_id "line=" . (last_line + 1) "name=GitGutterDummy file=" . s:file()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! s:remove_dummy_sign()
|
||||||
|
exe ":sign unplace" s:dummy_sign_id "file=" . s:file()
|
||||||
|
endfunction
|
||||||
|
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" Public interface {{{
|
" Public interface {{{
|
||||||
@@ -424,6 +428,7 @@ command GitGutter call GitGutter(s:current_file())
|
|||||||
function! GitGutterDisable()
|
function! GitGutterDisable()
|
||||||
let g:gitgutter_enabled = 0
|
let g:gitgutter_enabled = 0
|
||||||
call s:clear_signs(s:file())
|
call s:clear_signs(s:file())
|
||||||
|
call s:remove_dummy_sign()
|
||||||
endfunction
|
endfunction
|
||||||
command GitGutterDisable call GitGutterDisable()
|
command GitGutterDisable call GitGutterDisable()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user