summaryrefslogtreecommitdiff
path: root/src/input_handler.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2024-04-01 11:03:22 +1100
committerMaxime Coste <mawww@kakoune.org>2024-04-01 11:03:22 +1100
commit917db454d9502d087b43cd1ab455616735e86f69 (patch)
treef7590066dca17cfc10e2df9554bf4fc35c8a5817 /src/input_handler.hh
parentcc935c8cc6d9b2c46738e38457c9b0e77803fa7b (diff)
Change mode_info to contain an optional NormalParams
As @topisani pointed out in #5131, it is more user friendly to always provide a %val{register} and %val{count} regardless of the mode.
Diffstat (limited to 'src/input_handler.hh')
-rw-r--r--src/input_handler.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_handler.hh b/src/input_handler.hh
index 1d1404d4..2d0aa355 100644
--- a/src/input_handler.hh
+++ b/src/input_handler.hh
@@ -56,7 +56,7 @@ enum class InsertMode : unsigned
struct ModeInfo
{
DisplayLine display_line;
- EnvVarMap env_vars;
+ std::optional<NormalParams> normal_params;
};
class InputHandler : public SafeCountable