mirror of
https://github.com/vim/vim.git
synced 2025-09-30 04:44:14 -04:00
patch 8.1.0826: too many #ifdefs
Problem: Too many #ifdefs. Solution: Graduate FEAT_VIRTUALEDIT. Adds about 10Kbyte to the code.
This commit is contained in:
@@ -771,7 +771,7 @@ EXTERN int can_si_back INIT(= FALSE);
|
||||
|
||||
EXTERN pos_T saved_cursor /* w_cursor before formatting text. */
|
||||
#ifdef DO_INIT
|
||||
= INIT_POS_T(0, 0, 0)
|
||||
= {0, 0, 0}
|
||||
#endif
|
||||
;
|
||||
|
||||
@@ -1066,7 +1066,7 @@ EXTERN char_u *autocmd_match INIT(= NULL); /* name for <amatch> on cmdline */
|
||||
EXTERN int did_cursorhold INIT(= FALSE); /* set when CursorHold t'gerd */
|
||||
EXTERN pos_T last_cursormoved /* for CursorMoved event */
|
||||
# ifdef DO_INIT
|
||||
= INIT_POS_T(0, 0, 0)
|
||||
= {0, 0, 0}
|
||||
# endif
|
||||
;
|
||||
|
||||
@@ -1335,11 +1335,9 @@ EXTERN char psepcN INIT(= '/'); /* abnormal path separator character */
|
||||
EXTERN char pseps[2] INIT(= {'\\' COMMA 0});
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_VIRTUALEDIT
|
||||
/* Set to TRUE when an operator is being executed with virtual editing, MAYBE
|
||||
* when no operator is being executed, FALSE otherwise. */
|
||||
EXTERN int virtual_op INIT(= MAYBE);
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_SYN_HL
|
||||
/* Display tick, incremented for each call to update_screen() */
|
||||
|
Reference in New Issue
Block a user