From 9ae7a429320e7db76743448e7f3b216003de8755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 11 Apr 2015 10:24:51 +0200 Subject: Lazy initialization of :-commands --- editor.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'editor.h') 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*); -- cgit v1.2.3