aboutsummaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-10-22 19:17:54 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-10-22 19:29:03 +0200
commitdb65ac01a21d097183ae811e0847155f99bae25d (patch)
tree2a7431f4491c415c7164b77f273de6a8e8cc26f2 /editor.h
parentd086a162c7c776bad95d85c128599438fbf77395 (diff)
downloadvis-db65ac01a21d097183ae811e0847155f99bae25d.tar.gz
vis-db65ac01a21d097183ae811e0847155f99bae25d.tar.xz
vis: improve :help text, add separate status mode names
Diffstat (limited to 'editor.h')
-rw-r--r--editor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor.h b/editor.h
index e7b5f0a..3454bd4 100644
--- a/editor.h
+++ b/editor.h
@@ -49,6 +49,8 @@ struct Mode {
Map *bindings;
KeyBinding *default_bindings;
const char *name; /* descriptive, user facing name of the mode */
+ const char *status; /* name displayed in the window status bar */
+ const char *help; /* short description used by :help */
bool isuser; /* whether this is a user or internal mode */
void (*enter)(Mode *old); /* called right before the mode becomes active */
void (*leave)(Mode *new); /* called right before the mode becomes inactive */