diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-07-26 21:04:02 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-07-26 21:23:06 +1000 |
| commit | 737807dde28e55a7665eac43b7176cd2cc899d67 (patch) | |
| tree | 6211183deea26e064c6463c132b108867ebb1fe6 /src/normal.cc | |
| parent | 0919679e0d83132935d787a4470ea9164cd7eac5 (diff) | |
Replace a few loops with ranges
Diffstat (limited to 'src/normal.cc')
| -rw-r--r-- | src/normal.cc | 2 |
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); |
