Merge remote-tracking branch 'krobelus/fix-quoted-vals-expand'
This commit is contained in:
commit
6a39ac224b
|
@ -377,7 +377,7 @@ void expand_token(Token&& token, const Context& context, const ShellContext& she
|
||||||
|
|
||||||
auto val = ShellManager::instance().get_val(content, context);
|
auto val = ShellManager::instance().get_val(content, context);
|
||||||
if constexpr (single)
|
if constexpr (single)
|
||||||
return set_target(join(val, false, ' '));
|
return set_target(join(val, ' ', false));
|
||||||
else
|
else
|
||||||
return set_target(std::move(val));
|
return set_target(std::move(val));
|
||||||
}
|
}
|
||||||
|
|
1
test/regression/quoted-vals/cmd
Normal file
1
test/regression/quoted-vals/cmd
Normal file
|
@ -0,0 +1 @@
|
||||||
|
:exec "%%c%val{selections_desc}<lt>esc>"<ret>
|
2
test/regression/quoted-vals/in
Normal file
2
test/regression/quoted-vals/in
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
%(sel1)
|
||||||
|
%(sel2)
|
1
test/regression/quoted-vals/out
Normal file
1
test/regression/quoted-vals/out
Normal file
|
@ -0,0 +1 @@
|
||||||
|
2.2,2.5 1.1,1.4
|
Loading…
Reference in New Issue
Block a user