summaryrefslogtreecommitdiff
path: root/src/normal.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/normal.hh')
-rw-r--r--src/normal.hh9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/normal.hh b/src/normal.hh
index 4baa21df..7f90075d 100644
--- a/src/normal.hh
+++ b/src/normal.hh
@@ -3,8 +3,7 @@
#include "keys.hh"
#include "unordered_map.hh"
-
-#include <functional>
+#include "string.hh"
namespace Kakoune
{
@@ -19,12 +18,12 @@ struct NormalParams
struct NormalCmdDesc
{
- const char* docstring;
- std::function<void (Context& context, NormalParams params)> func;
+ StringView docstring;
+ void (*func)(Context& context, NormalParams params);
};
using KeyMap = UnorderedMap<Key, NormalCmdDesc>;
-extern KeyMap keymap;
+extern const KeyMap keymap;
}