Update signs both on FocusGained and FocusLost

This commit is contained in:
Alex Rodionov 2014-11-02 19:47:49 +06:00
parent a03bee658f
commit 4c3c10d1cb
2 changed files with 6 additions and 6 deletions

View File

@ -96,7 +96,7 @@ All available options:~
|g:signify_skip_filetype|
|g:signify_skip_filename|
|g:signify_update_on_bufenter|
|g:signify_update_on_focusgained|
|g:signify_update_on_focus|
|g:signify_line_highlight|
|g:signify_sign_add|
|g:signify_sign_delete|
@ -209,11 +209,11 @@ Update signs when entering a buffer that was modified.
NOTE: This also saves the buffer to disk!
------------------------------------------------------------------------------
*g:signify_update_on_focusgained*
*g:signify_update_on_focus*
>
let g:signify_update_on_focusgained = 0
let g:signify_update_on_focus = 0
<
Update signs when Vim gains focus.
Update signs when Vim gains/loses focus.
------------------------------------------------------------------------------
*g:signify_line_highlight*

View File

@ -30,8 +30,8 @@ augroup signify
autocmd CursorHoldI * nested call s:save()
endif
if get(g:, 'signify_update_on_focusgained') && !has('gui_win32')
autocmd FocusGained * call s:refresh_windows()
if get(g:, 'signify_update_on_focus') && !has('gui_win32')
autocmd FocusGained,FocusLost * call s:refresh_windows()
endif
augroup END