mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2025-09-01 20:16:59 +00:00
Improve default restored program command matching
This commit is contained in:
@ -74,7 +74,8 @@ _process_on_the_restore_list() {
|
||||
local restore_list="$(_restore_list)"
|
||||
local proc
|
||||
for proc in $restore_list; do
|
||||
if [[ "$pane_full_command" =~ (^$proc) ]]; then
|
||||
# regex matching the command makes sure process is a "word"
|
||||
if [[ "$pane_full_command" =~ (^${proc} ) ]] || [[ "$pane_full_command" =~ (^${proc}$) ]]; then
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
|
Reference in New Issue
Block a user