From b8456fa2615480fa242c6992ca89481a8370fe5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 18 Dec 2014 13:50:19 +0100 Subject: Macro support At some point this should be optimized further at the moment there is some 20 byte overhead for each entered key. --- editor.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'editor.h') diff --git a/editor.h b/editor.h index 718ca96..206d3ea 100644 --- a/editor.h +++ b/editor.h @@ -6,6 +6,7 @@ #include #include "window.h" #include "register.h" +#include "macro.h" #include "syntax.h" typedef struct Editor Editor; @@ -96,6 +97,8 @@ struct Editor { EditorWin *win; /* currently active window */ Syntax *syntaxes; /* NULL terminated array of syntax definitions */ Register registers[REG_LAST]; /* register used for copy and paste */ + Macro macros[26]; /* recorded macros */ + Macro *recording, *last_recording;/* currently and least recently recorded macro */ Prompt *prompt; /* used to get user input */ char info[255]; /* a user message currently being displayed */ Regex *search_pattern; /* last used search pattern */ -- cgit v1.2.3