save pane id instead of index
pane index '#P' will change when new pane added.
This commit is contained in:
parent
9b89652b0b
commit
7276b182ea
|
@ -34,7 +34,7 @@ define-command -hidden -params 1..2 tmux-repl-impl %{
|
||||||
tmux_cmd="$@"
|
tmux_cmd="$@"
|
||||||
tmux $tmux_args $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_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}')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user