use nested autocmds

This commit is contained in:
Marco Hinz 2013-04-14 12:26:35 +02:00
parent 1ba2062e73
commit 668bdebad2

View File

@ -58,16 +58,16 @@ augroup signify
endif endif
if get(g:, 'signify_cursorhold_normal') if get(g:, 'signify_cursorhold_normal')
autocmd CursorHold * autocmd CursorHold * nested
\ if has_key(s:sy, s:path) && s:sy[s:path].active && &modified | \ if has_key(s:sy, s:path) && s:sy[s:path].active && &modified |
\ update | call s:start(s:path) | \ write |
\ endif \ endif
endif endif
if get(g:, 'signify_cursorhold_insert') if get(g:, 'signify_cursorhold_insert')
autocmd CursorHoldI * autocmd CursorHoldI * nested
\ if has_key(s:sy, s:path) && s:sy[s:path].active && &modified | \ if has_key(s:sy, s:path) && s:sy[s:path].active && &modified |
\ update | call s:start(s:path) | \ write |
\ endif \ endif
endif endif