Skip to content

Commit

Permalink
Improve close_runner_pane
Browse files Browse the repository at this point in the history
Do not execute `tmux kill-pane` when a runner pane is not available

Avoids UI glitches when :VimuxCloseRunner is auto-called before exiting
Vim.
  • Loading branch information
tonyskn committed Dec 11, 2012
1 parent d6d88a4 commit 06d75cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/vimux.vim
Expand Up @@ -293,7 +293,7 @@ class TmuxSession
end

def close_runner_pane
_run("kill-pane -t #{target(:pane => runner_pane)}")
_run("kill-pane -t #{target(:pane => runner_pane)}") unless @runner_pane.nil?
end

def close_other_panes
Expand Down

0 comments on commit 06d75cb

Please sign in to comment.