Skip to content

Commit

Permalink
Restore terminal options when &term changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Sutic committed Sep 29, 2015
1 parent 9f9edcf commit bb36f0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin/tmux_focus_events.vim
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ endfunction

call <SID>restore_focus_events()

" When '&term' changes values for '<F24>', '<F25>', '&t_ti' and '&t_te' are
" reset. Below autocmd restores values for those options.
au TermChanged * call <SID>restore_focus_events()

" restore vim 'autoread' functionality
au FocusGained * call tmux_focus_events#focus_gained()

Expand Down

0 comments on commit bb36f0c

Please sign in to comment.