summaryrefslogtreecommitdiffstats
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-05-12 15:38:26 +0200
committerBram Moolenaar <Bram@vim.org>2018-05-12 15:38:26 +0200
commitb0f42ba60d9e6d101d103421ba0c351811615c15 (patch)
tree083b82fcd12fc95a90d779898a6a2b9939ef7837 /src/structs.h
parentff3be4fe1e2e723de48b826cb992c798e296c41e (diff)
patch 8.0.1817: a timer may change v:count unexpectedlyv8.0.1817
Problem: A timer may change v:count unexpectedly. Solution: Save and restore v:count and similar variables when a timer callback is invoked. (closes #2897)
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h
index 8f35a73871..5c4a74cac7 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -3423,3 +3423,9 @@ typedef struct {
int save_opcount;
tasave_T tabuf;
} save_state_T;
+
+typedef struct {
+ varnumber_T vv_prevcount;
+ varnumber_T vv_count;
+ varnumber_T vv_count1;
+} vimvars_save_T;