use nested autocmds
This commit is contained in:
parent
1ba2062e73
commit
668bdebad2
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user