From 9d085c75ff427bf0ccc408983ce7b68f0a2b284d Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 10 Apr 2019 00:50:51 +0200 Subject: vim-patch:8.0.0702: error in a timer can make Vim unusable #9826 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. https://github.com/vim/vim/commit/c577d813b7978345dec4310b2d8f5d5624a681f6 closes #9826 --- src/nvim/option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/option.c') diff --git a/src/nvim/option.c b/src/nvim/option.c index bfb1de096d..4403861af4 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -3383,7 +3383,7 @@ ambw_end: check_redraw(options[opt_idx].flags); return errmsg; -} +} // NOLINT(readability/fn_size) /// Simple int comparison function for use with qsort() static int int_cmp(const void *a, const void *b) -- cgit