summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-07-26 21:04:02 +1000
committerMaxime Coste <mawww@kakoune.org>2018-07-26 21:23:06 +1000
commit737807dde28e55a7665eac43b7176cd2cc899d67 (patch)
tree6211183deea26e064c6463c132b108867ebb1fe6 /src/normal.cc
parent0919679e0d83132935d787a4470ea9164cd7eac5 (diff)
Replace a few loops with ranges
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/normal.cc b/src/normal.cc
index a1c14604..f0ab0155 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -167,7 +167,7 @@ String build_autoinfo_for_mapping(Context& context, KeymapMode mode,
{
String keys = join(built_in.keys |
filter([&](Key k){ return not keymaps.is_mapped(k, mode); }) |
- transform([](Key k) { return key_to_str(k); }),
+ transform(key_to_str),
',', false);
if (not keys.empty())
descs.emplace_back(std::move(keys), built_in.docstring);