Unverified Commit 884a5e9c authored by Bruno Sutic's avatar Bruno Sutic
Browse files

Improve default restored program command matching

parent 8cb5b21e
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment