From 3b7757793a46beac6e9c31ebce595cd3c41bac77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 11 Apr 2015 12:13:09 +0200 Subject: Remove global mode state Once again show mode in window status bar. --- editor.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'editor.h') diff --git a/editor.h b/editor.h index c9c3bbe..10da800 100644 --- a/editor.h +++ b/editor.h @@ -239,6 +239,9 @@ struct Editor { Action action; /* current action which is in progress */ Action action_prev; /* last operator action used by the repeat '.' key */ + Mode *mode; /* currently active mode, used to search for keybindings */ + Mode *mode_prev; /* previsouly active user mode */ + Mode *mode_before_prompt; /* user mode which was active before entering prompt */ }; Editor *editor_new(Ui*); -- cgit v1.2.3