Mercurial > vim
comparison src/structs.h @ 11639:71d7b5ed08a0 v8.0.0702
patch 8.0.0702: an error in a timer can make Vim unusable
commit https://github.com/vim/vim/commit/c577d813b7978345dec4310b2d8f5d5624a681f6
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 8 22:37:34 2017 +0200
patch 8.0.0702: an error in a timer can make Vim unusable
Problem: An error in a timer can make Vim unusable.
Solution: Don't set the error flag or exception from a timer. Stop a timer
if it causes an error 3 out of 3 times. Discard an exception
caused inside a timer.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 08 Jul 2017 22:45:03 +0200 |
parents | b8299e742f41 |
children | 16dab1cd56f2 |
comparison
equal
deleted
inserted
replaced
11638:8bac0b53882b | 11639:71d7b5ed08a0 |
---|---|
3241 char tr_paused; /* when TRUE callback is not invoked */ | 3241 char tr_paused; /* when TRUE callback is not invoked */ |
3242 int tr_repeat; /* number of times to repeat, -1 forever */ | 3242 int tr_repeat; /* number of times to repeat, -1 forever */ |
3243 long tr_interval; /* msec */ | 3243 long tr_interval; /* msec */ |
3244 char_u *tr_callback; /* allocated */ | 3244 char_u *tr_callback; /* allocated */ |
3245 partial_T *tr_partial; | 3245 partial_T *tr_partial; |
3246 int tr_emsg_count; | |
3246 #endif | 3247 #endif |
3247 }; | 3248 }; |
3248 | 3249 |
3249 /* Maximum number of commands from + or -c arguments. */ | 3250 /* Maximum number of commands from + or -c arguments. */ |
3250 #define MAX_ARG_CMDS 10 | 3251 #define MAX_ARG_CMDS 10 |