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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user