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:
Johannes Altmanninger 2023-11-03 06:43:44 +01:00
parent 7577fa1b66
commit 8a3613e5a0
4 changed files with 5 additions and 1 deletions

View File

@ -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));
} }

View File

@ -0,0 +1 @@
:exec "%%c%val{selections_desc}<lt>esc>"<ret>

View File

@ -0,0 +1,2 @@
%(sel1)
%(sel2)

View File

@ -0,0 +1 @@
2.2,2.5 1.1,1.4