aboutsummaryrefslogtreecommitdiff
path: root/vis-core.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-12-29 22:42:58 +0100
committerMarc André Tanner <mat@brain-dump.org>2017-01-18 12:53:13 +0100
commitfb7f934204035b1e02c8394eee5c8b1df5e476ec (patch)
tree0a42b20835fb7fe3cd31e28cb4c26d393a977f81 /vis-core.h
parent9997739b96a7fc142a18cb72cb7589bd4b4d61b0 (diff)
downloadvis-fb7f934204035b1e02c8394eee5c8b1df5e476ec.tar.gz
vis-fb7f934204035b1e02c8394eee5c8b1df5e476ec.tar.xz
vis: do not take undo snaphots while replaying a macro
The vis_keys_feed function is currently unaffected by this change. It still creates individual undo points. While this is probably undesirable from an API point of view, it keeps the lua based tests that use undo points working.
Diffstat (limited to 'vis-core.h')
-rw-r--r--vis-core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vis-core.h b/vis-core.h
index b5a44ff..debd994 100644
--- a/vis-core.h
+++ b/vis-core.h
@@ -160,6 +160,7 @@ struct Vis {
Win *message_window; /* special window to display multi line messages */
Register registers[VIS_REG_INVALID]; /* registers used for text manipulations yank/put etc. and macros */
Macro *recording, *last_recording; /* currently (if non NULL) and least recently recorded macro */
+ const Macro *replaying; /* macro currently being replayed */
Macro *macro_operator; /* special macro used to repeat certain operators */
Mode *mode_before_prompt; /* user mode which was active before entering prompt */
char search_char[8]; /* last used character to search for via 'f', 'F', 't', 'T' */