aboutsummaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-04-11 10:24:51 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-04-11 10:26:20 +0200
commit9ae7a429320e7db76743448e7f3b216003de8755 (patch)
tree79bbda22b2f748613b6ac8b65a761d641654137d /editor.h
parentb7fb06da2364bdee1d224cbc5cb7afd8b402248e (diff)
downloadvis-9ae7a429320e7db76743448e7f3b216003de8755.tar.gz
vis-9ae7a429320e7db76743448e7f3b216003de8755.tar.xz
Lazy initialization of :-commands
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 b83fd13..dd242ec 100644
--- a/editor.h
+++ b/editor.h
@@ -14,6 +14,7 @@ typedef struct EditorWin EditorWin;
#include "macro.h"
#include "syntax.h"
#include "ring-buffer.h"
+#include "map.h"
enum Reg {
REG_a,
@@ -120,6 +121,7 @@ struct Editor {
int tabwidth; /* how many spaces should be used to display a tab */
bool expandtab; /* whether typed tabs should be converted to spaces */
bool autoindent; /* whether indentation should be copied from previous line on newline */
+ Map *cmds; /* ":"-commands, used for unique prefix queries */
};
Editor *editor_new(Ui*);