changed scope of tmux_repl_id from global to current

By setting the tmux_repl_id in the `current` scope it is possible to have
different REPLs for different buffers or windows.
This commit is contained in:
Tilman List 2020-10-27 17:20:33 +01:00
parent 9a5cf2fc9f
commit 9955cfdd8d

View File

@ -19,7 +19,7 @@ define-command -hidden -params 1.. tmux-repl-impl %{
tmux_args="$1"
shift
tmux $tmux_args "$@"
printf "set-option global tmux_repl_id '%s'" $(tmux display-message -p '#{session_id}:#{window_id}.#{pane_id}')
printf "set-option current tmux_repl_id '%s'" $(tmux display-message -p '#{session_id}:#{window_id}.#{pane_id}')
}
}