Ignore :SignifyRefresh in cmdline-window

Closes #231.
This commit is contained in:
Marco Hinz 2017-03-02 16:46:38 +01:00
parent 96b3eda10e
commit b4c516cd63
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F
3 changed files with 13 additions and 3 deletions

View File

@ -30,7 +30,9 @@ function! sy#util#refresh_windows() abort
let winnr = winnr()
endif
if !get(g:, 'signify_cmdwin_active')
windo if exists('b:sy') | call sy#start() | endif
endif
if exists('winid')
call win_gotoid(winid)

View File

@ -291,9 +291,12 @@ NOTE: This also saves the buffer to disk!
*g:signify_update_on_focusgained* >
let g:signify_update_on_focusgained = 0
<
Update signs when the window holding Vim gains focus.
Update the signs on |FocusGained|, thus when the window holding Vim gains focus.
It does so by executing |signify-:SignifyRefresh|.
NOTE: This works for all GUIs and even a few terminal emulators.
NOTE: The |FocusGained| event is fired for all GUIs and even a few terminal
emulators. If you use tmux, put `set-option -g focus-events on` in your
tmux.conf.
------------------------------------------------------------------------------
*g:signify_line_highlight* >
@ -421,6 +424,8 @@ Toggle line highlighting for lines containing changes.
<
Refresh signs in all windows.
NOTE: Nothing will happen, if :SignifyRefresh is used from the |cmdline-window|.
------------------------------------------------------------------------------
*signify-:SignifyFold* >
:SignifyFold[!]

View File

@ -18,6 +18,9 @@ augroup signify
autocmd QuickFixCmdPre *vimgrep* let g:signify_locked = 1
autocmd QuickFixCmdPost *vimgrep* let g:signify_locked = 0
autocmd CmdwinEnter * let g:signify_cmdwin_active = 1
autocmd CmdwinLeave * let g:signify_cmdwin_active = 0
autocmd BufWritePost * call sy#start()
if get(g:, 'signify_realtime') && has('patch-7.4.1967')