mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2024-11-22 04:18:48 +00:00
Improve default restored program command matching
This commit is contained in:
parent
8cb5b21e2f
commit
884a5e9c19
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user