diff options
| author | Igor Ramazanov <igor.ramazanov@protonmail.com> | 2024-06-04 23:19:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-04 23:19:47 +0200 |
| commit | 4d21fbb3b0b66ef48270e5655bf2687a1f78becf (patch) | |
| tree | 479c9ca7cd6e9fcf16d7abc7ebea8c8fe0b502e9 /src/input_handler.hh | |
| parent | 7e8c430ad0706604c0b919207f322a5c14150575 (diff) | |
| parent | 727d2391c7695056ce6bb170b127c6e6ca9e1ab4 (diff) | |
Merge branch 'mawww:master' into contrib/gendocs.sh
Diffstat (limited to 'src/input_handler.hh')
| -rw-r--r-- | src/input_handler.hh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/input_handler.hh b/src/input_handler.hh index eeb42464..ba73d2b1 100644 --- a/src/input_handler.hh +++ b/src/input_handler.hh @@ -4,8 +4,10 @@ #include "completion.hh" #include "constexpr_utils.hh" #include "context.hh" +#include "env_vars.hh" #include "face.hh" #include "normal.hh" +#include "optional.hh" #include "keys.hh" #include "string.hh" #include "utils.hh" @@ -52,6 +54,12 @@ enum class InsertMode : unsigned OpenLineAbove }; +struct ModeInfo +{ + DisplayLine display_line; + Optional<NormalParams> normal_params; +}; + class InputHandler : public SafeCountable { public: @@ -97,7 +105,7 @@ public: Context& context() { return m_context; } const Context& context() const { return m_context; } - DisplayLine mode_line() const; + ModeInfo mode_info() const; std::pair<CursorMode, DisplayCoord> get_cursor_info() const; |
