'main': Do not look for metacharacters in parameter expansions.

Fixes the bug the previous commit added a test for.
This commit is contained in:
Daniel Shahaf
2020-02-21 10:19:51 +00:00
parent f490b7cb95
commit f729726300
3 changed files with 14 additions and 8 deletions

View File

@@ -33,6 +33,6 @@ local x="()"
BUFFER=$'$x ls'
expected_region_highlight=(
'1 2 unknown-token "fixed in the next commit"' # $x
'1 2 unknown-token' # $x
'4 5 command' # ls
)

View File

@@ -33,6 +33,6 @@ local x="^foo^bar"
BUFFER=$'$x ls'
expected_region_highlight=(
'1 2 unknown-token "fixed in the next commit"' # $x
'1 2 unknown-token' # $x
'4 5 default' # ls
)