summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2022-09-09 17:03:59 +0200
committerMaxime Coste <mawww@kakoune.org>2022-09-09 17:03:59 +0200
commit1831c4da4b8a0a33a5c73201ed44ec1a382fb3c4 (patch)
tree20634155feec62c1bd64e5e1248573addc8bd517 /src/normal.cc
parent9270047e2cb587425ba03ab4fdcdee8a8a0a75f3 (diff)
parent0eb4e68c402bcd77ad542e2c6113cb3abcd498d6 (diff)
Merge remote-tracking branch 'krobelus/to-string'
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/normal.cc b/src/normal.cc
index c310817d..0f5c1c2f 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -179,14 +179,14 @@ String build_autoinfo_for_mapping(const Context& context, KeymapMode mode,
{
String keys = join(built_in.keys |
filter([&](Key k){ return not keymaps.is_mapped(k, mode); }) |
- transform(key_to_str),
+ transform((String(*)(Key))to_string),
',', false);
if (not keys.empty())
descs.emplace_back(std::move(keys), built_in.docstring);
}
for (auto& key : keymaps.get_mapped_keys(mode))
- descs.emplace_back(key_to_str(key),
+ descs.emplace_back(to_string(key),
keymaps.get_mapping(key, mode).docstring);
auto max_len = 0_col;