1
0
forked from aniani/vim

patch 8.0.1817: a timer may change v:count unexpectedly

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)
This commit is contained in:
Bram Moolenaar
2018-05-12 15:38:26 +02:00
parent ff3be4fe1e
commit b0f42ba60d
6 changed files with 70 additions and 0 deletions

View File

@@ -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;