Skip to content

Commit 06d75cb

Browse files
committed
Improve close_runner_pane
Do not execute `tmux kill-pane` when a runner pane is not available Avoids UI glitches when :VimuxCloseRunner is auto-called before exiting Vim.
1 parent d6d88a4 commit 06d75cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/vimux.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ class TmuxSession
293293
end
294294

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

299299
def close_other_panes

0 commit comments

Comments
 (0)