aboutsummaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-04-11 12:13:09 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-04-11 12:13:09 +0200
commit3b7757793a46beac6e9c31ebce595cd3c41bac77 (patch)
treef8ba8337996adf26a518d132df0419088abb1818 /editor.h
parentc56e523ce74dd48d8c18f4dce3e8881310613015 (diff)
downloadvis-3b7757793a46beac6e9c31ebce595cd3c41bac77.tar.gz
vis-3b7757793a46beac6e9c31ebce595cd3c41bac77.tar.xz
Remove global mode state
Once again show mode in window status bar.
Diffstat (limited to 'editor.h')
-rw-r--r--editor.h3
1 files changed, 3 insertions, 0 deletions
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*);