mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2024-11-22 04:18:48 +00:00
remove terminal clearing since it collides with capture-pane-contents
This commit is contained in:
parent
b8cc90a7f4
commit
71fd3c8dd2
@ -276,9 +276,7 @@ restore_shell_history() {
|
|||||||
if ! is_pane_registered_as_existing "$session_name" "$window_number" "$pane_index"; then
|
if ! is_pane_registered_as_existing "$session_name" "$window_number" "$pane_index"; then
|
||||||
if [ "$pane_command" == "bash" ]; then
|
if [ "$pane_command" == "bash" ]; then
|
||||||
local pane_id="$session_name:$window_number.$pane_index"
|
local pane_id="$session_name:$window_number.$pane_index"
|
||||||
# tmux send-keys has -R option that should reset the terminal.
|
local read_command="history -r '$(resurrect_history_file "$pane_id")'"
|
||||||
# However, appending 'clear' to the command seems to work more reliably.
|
|
||||||
local read_command="history -r '$(resurrect_history_file "$pane_id")'; clear"
|
|
||||||
tmux send-keys -t "$pane_id" "$read_command" C-m
|
tmux send-keys -t "$pane_id" "$read_command" C-m
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user