save pane id instead of index

pane index '#P' will change when new pane added.
This commit is contained in:
Hao Deng 2018-05-23 22:13:37 -04:00 committed by GitHub
parent 9b89652b0b
commit 7276b182ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}')
}
}