diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-10-20 12:16:58 +0800 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-10-20 12:21:22 +0800 |
| commit | 7c06667bdf58d57e36116246084e9197ee5d1407 (patch) | |
| tree | e1d428556e798c0f4e008a5a73f59430e35a1bf6 /src/normal.hh | |
| parent | d486ea84e57bdabec07fe38a0bb4fb5bdf21848f (diff) | |
Make the normal mode keymap a compile time hash map
This hash map is now fully constexpr, and ends up stored in the read
only data segment instead of being recomputed at each startup.
Diffstat (limited to 'src/normal.hh')
| -rw-r--r-- | src/normal.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/normal.hh b/src/normal.hh index 061ab029..9802f642 100644 --- a/src/normal.hh +++ b/src/normal.hh @@ -18,8 +18,8 @@ struct NormalParams struct NormalCmd { - StringView docstring; - void (*func)(Context& context, NormalParams params); + StringView docstring = {}; + void (*func)(Context& context, NormalParams params) = nullptr; }; Optional<NormalCmd> get_normal_command(Key key); |
