Fix "%val{selections_desc}" being joined by nul instead of space
This should fix a bug in lint.kak though I didn't check.
This commit is contained in:
parent
7577fa1b66
commit
8a3613e5a0
|
@ -377,7 +377,7 @@ void expand_token(Token&& token, const Context& context, const ShellContext& she
|
|||
|
||||
auto val = ShellManager::instance().get_val(content, context);
|
||||
if constexpr (single)
|
||||
return set_target(join(val, false, ' '));
|
||||
return set_target(join(val, ' ', false));
|
||||
else
|
||||
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