mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.0.1564: too many #ifdefs
Problem: Too many #ifdefs. Solution: Graduate the +autocmd feature. Takes away 450 #ifdefs and increases code size of tiny Vim by only 40 Kbyte.
This commit is contained in:
@@ -1787,7 +1787,6 @@ mch_inchar(
|
||||
*/
|
||||
if (!WaitForChar(p_ut, FALSE))
|
||||
{
|
||||
#ifdef FEAT_AUTOCMD
|
||||
if (trigger_cursorhold() && maxlen >= 3)
|
||||
{
|
||||
buf[0] = K_SPECIAL;
|
||||
@@ -1795,7 +1794,6 @@ mch_inchar(
|
||||
buf[2] = (int)KE_CURSORHOLD;
|
||||
return 3;
|
||||
}
|
||||
#endif
|
||||
before_blocking();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user