diff --git a/doc/signify.txt b/doc/signify.txt index ef67ddb..7ab4238 100644 --- a/doc/signify.txt +++ b/doc/signify.txt @@ -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* diff --git a/plugin/signify.vim b/plugin/signify.vim index a8d8bec..7b2b257 100644 --- a/plugin/signify.vim +++ b/plugin/signify.vim @@ -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