diff options
| author | Maxime Coste <mawww@kakoune.org> | 2024-04-01 11:03:22 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2024-04-01 11:03:22 +1100 |
| commit | 917db454d9502d087b43cd1ab455616735e86f69 (patch) | |
| tree | f7590066dca17cfc10e2df9554bf4fc35c8a5817 /src/input_handler.cc | |
| parent | cc935c8cc6d9b2c46738e38457c9b0e77803fa7b (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.cc')
| -rw-r--r-- | src/input_handler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc index 2c085f08..e11740c7 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -390,7 +390,7 @@ public: atoms.emplace_back(" reg=", context().faces()["StatusLineInfo"]); atoms.emplace_back(StringView(m_params.reg).str(), context().faces()["StatusLineValue"]); } - return {atoms, {{"count", to_string(m_params.count)}, {"register", StringView(m_params.reg).str()}}}; + return {atoms, m_params}; } KeymapMode keymap_mode() const override { return KeymapMode::Normal; } |
