Avoid unnecessary sign redrawing

References #28.
This commit is contained in:
Marco Hinz 2013-06-06 12:34:22 +02:00
parent 882ba6e282
commit c2d062ab12

View File

@ -50,12 +50,12 @@ sign define SignifyPlaceholder text=. texthl=SignifyChange linehl=NONE
augroup signify
autocmd!
autocmd BufEnter * let s:path = resolve(expand('<afile>:p'))
autocmd BufWritePost * call s:start(s:path)
autocmd BufRead * let s:path = resolve(expand('<afile>:p'))
autocmd BufRead,BufWritePost * call s:start(s:path)
autocmd VimEnter,ColorScheme * call s:colors_set()
if get(g:, 'signify_update_on_bufenter', 1)
autocmd BufEnter * call s:start(s:path)
autocmd BufEnter * if &modified | call s:start(s:path) | endif
endif
if get(g:, 'signify_cursorhold_normal')