forked from aniani/vim
patch 8.2.5115: search timeout is overrun with some patterns
Problem: Search timeout is overrun with some patterns. Solution: Check for timeout in more places. Make the flag volatile and atomic. Use assert_inrange() to see what happened.
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
|
||||
#ifdef FEAT_RELTIME
|
||||
static int dummy_timeout_flag = 0;
|
||||
static const int *timeout_flag = &dummy_timeout_flag;
|
||||
static volatile int *timeout_flag = &dummy_timeout_flag;
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user