Skip to content

Commit 018299c

Browse files
committed
BUG: engine-var must be matched with case and trailing separator and consider quoting in output
To avoid that e.g. @Open-S matches @open-searcher-command. If the configured command contains whitespace, Tmux will double-quote the result, and we must pick up all words, not just the first one.
1 parent a4b98fb commit 018299c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/helpers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ stored_engine_vars() {
4343

4444
get_engine() {
4545
local engine_var="$1"
46-
tmux show-options -g | grep -i "^@open-$engine_var" | cut -d ' ' -f2 | xargs
46+
tmux show-options -g | grep "^@open-$engine_var" | cut -d ' ' -f2- | xargs
4747
}
4848

4949
# The last grep is required to remove non-digits from version such as "3.0a".

0 commit comments

Comments
 (0)