summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2020-04-13 11:09:08 +1000
committerMaxime Coste <mawww@kakoune.org>2020-04-13 11:09:08 +1000
commit91e3a58a3abfa09c75999feb807604fe51ff1a22 (patch)
tree98ffc394e8b34b7895c36ed4a2abe080c025811b /src
parentfd454f90f936442438efb1332bf71dd72cb0cdf5 (diff)
parent07d702e419a5315e72041599ffc1465cca3f3439 (diff)
Merge remote-tracking branch 'lenormf/fix-3410'
Diffstat (limited to 'src')
-rw-r--r--src/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc
index f16e9f9a..48d4e3ab 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -312,7 +312,7 @@ static const EnvVarDesc builtin_env_vars[] = { {
"selections_length", false,
[](StringView name, const Context& context) -> Vector<String>
{ return context.selections() |
- transform([&](const Selection& s) {
+ transform([&](const Selection& s) -> String {
return to_string(char_length(context.buffer(), s));
}) | gather<Vector<String>>(); }
}, {