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:
4
src/ui.c
4
src/ui.c
@@ -3299,13 +3299,11 @@ ui_focus_change(
|
||||
last_time = time(NULL);
|
||||
}
|
||||
|
||||
#ifdef FEAT_AUTOCMD
|
||||
/*
|
||||
* Fire the focus gained/lost autocommand.
|
||||
*/
|
||||
need_redraw |= apply_autocmds(in_focus ? EVENT_FOCUSGAINED
|
||||
: EVENT_FOCUSLOST, NULL, NULL, FALSE, curbuf);
|
||||
#endif
|
||||
|
||||
if (need_redraw)
|
||||
{
|
||||
@@ -3339,7 +3337,7 @@ ui_focus_change(
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(FEAT_MBYTE) || defined(PROTO)
|
||||
#if defined(HAVE_INPUT_METHOD) || defined(PROTO)
|
||||
/*
|
||||
* Save current Input Method status to specified place.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user