aboutsummaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-05-16 15:33:42 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-05-16 22:33:26 +0200
commit55d76f8a38a1da911bf3162f2b1f60cf91ec94bb (patch)
treee3380a6eaec2e266c8f4eb5a5b66507c56cfa255 /editor.h
parentff0fb0e5a5ef0da28d74d423e2c8ca534e549a4a (diff)
downloadvis-55d76f8a38a1da911bf3162f2b1f60cf91ec94bb.tar.gz
vis-55d76f8a38a1da911bf3162f2b1f60cf91ec94bb.tar.xz
Release macro data
Diffstat (limited to 'editor.h')
-rw-r--r--editor.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor.h b/editor.h
index 769337e..7104d01 100644
--- a/editor.h
+++ b/editor.h
@@ -214,6 +214,8 @@ struct Win {
Win *prev, *next; /* neighbouring windows */
};
+#define MACRO_LAST 26
+
struct Editor {
Ui *ui;
File *files;
@@ -221,7 +223,7 @@ struct Editor {
Win *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 macros[MACRO_LAST]; /* recorded macros */
Macro *recording, *last_recording;/* currently and least recently recorded macro */
Win *prompt; /* 1-line height window to get user input */
Win *prompt_window; /* window which was focused before prompt was shown */