Skip to content

Commit

Permalink
Attempt tmux-plugins#2 at fixing autocmd * * call delayed_checktime()…
Browse files Browse the repository at this point in the history
… (cannot autocmd * * in vim, it throws E1155 exception)
  • Loading branch information
mckellygit committed Mar 3, 2021
1 parent f8b5ef7 commit e3615ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/tmux_focus_events.vim
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ function! s:cursor_in_cmd_line()
endfunction

function! s:delayed_checktime()
redraw!
try
silent checktime
" clearing out 'emergency' events, if the checktime succeeded
Expand All @@ -32,7 +33,7 @@ function! tmux_focus_events#focus_gained()
augroup focus_gained_checktime
au!
" perform checktime ASAP when outside cmd line
au * * call <SID>delayed_checktime()
au CmdLineEnter,CmdLineChanged * call <SID>delayed_checktime()
augroup END
else
silent checktime
Expand Down

0 comments on commit e3615ed

Please sign in to comment.