From 7276b182ea842eca0a340b77757073d92f5a4528 Mon Sep 17 00:00:00 2001 From: Hao Deng Date: Wed, 23 May 2018 22:13:37 -0400 Subject: [PATCH] save pane id instead of index pane index '#P' will change when new pane added. --- rc/extra/tmux-repl.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/extra/tmux-repl.kak b/rc/extra/tmux-repl.kak index fc8887db..640e594a 100644 --- a/rc/extra/tmux-repl.kak +++ b/rc/extra/tmux-repl.kak @@ -34,7 +34,7 @@ define-command -hidden -params 1..2 tmux-repl-impl %{ tmux_cmd="$@" tmux $tmux_args $tmux_cmd tmux set-buffer -b kak_repl_window $(tmux display-message -p '#I') - tmux set-buffer -b kak_repl_pane $(tmux display-message -p '#P') + tmux set-buffer -b kak_repl_pane $(tmux display-message -p '#{pane_id}') } }