do not save when not feasible

This commit is contained in:
Marco Hinz 2013-04-03 15:47:12 +02:00
parent 542c5d03ee
commit da9f829f76

View File

@ -81,11 +81,17 @@ augroup signify
endif
if get(g:, 'signify_cursorhold_normal')
autocmd CursorHold * silent update | call s:start(s:path)
autocmd CursorHold *
\ if filewritable(s:path) && empty(&buftype) |
\ update | call s:start(s:path) |
\ endif
endif
if get(g:, 'signify_cursorhold_insert')
autocmd CursorHoldI * silent update | call s:start(s:path)
autocmd CursorHoldI *
\ if filewritable(s:path) && empty(&buftype) |
\ update | call s:start(s:path) |
\ endif
endif
if !has('gui_win32')