diff --git a/plugin/vimux.vim b/plugin/vimux.vim index ca78fa5..ac950c5 100644 --- a/plugin/vimux.vim +++ b/plugin/vimux.vim @@ -167,13 +167,13 @@ function! VimuxInterruptRunner() abort endfunction function! VimuxClearTerminalScreen() abort - if exists('g:VimuxRunnerIndex') + if exists('g:VimuxRunnerIndex') && s:hasRunner(g:VimuxRunnerIndex) !=# -1 call VimuxSendKeys('C-l') endif endfunction function! VimuxClearRunnerHistory() abort - if exists('g:VimuxRunnerIndex') + if exists('g:VimuxRunnerIndex') && s:hasRunner(g:VimuxRunnerIndex) !=# -1 call VimuxTmux('clear-history -t '.g:VimuxRunnerIndex) endif endfunction