mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs
Problem: FEAT_WINDOWS adds a lot of #ifdefs while it is nearly always enabled and only adds 7% to the binary size of the tiny build. Solution: Graduate FEAT_WINDOWS.
This commit is contained in:
@@ -1125,7 +1125,7 @@ getcmdline(
|
||||
#ifdef CURSOR_SHAPE
|
||||
ui_cursor_shape(); /* may show different cursor shape */
|
||||
#endif
|
||||
#if defined(FEAT_WINDOWS) && defined(FEAT_KEYMAP)
|
||||
#if defined(FEAT_KEYMAP)
|
||||
/* Show/unshow value of 'keymap' in status lines later. */
|
||||
status_redraw_curbuf();
|
||||
#endif
|
||||
@@ -1966,11 +1966,9 @@ cmdline_changed:
|
||||
end_pos = curwin->w_cursor; /* shutup gcc 4 */
|
||||
|
||||
validate_cursor();
|
||||
# ifdef FEAT_WINDOWS
|
||||
/* May redraw the status line to show the cursor position. */
|
||||
if (p_ru && curwin->w_status_height > 0)
|
||||
curwin->w_redr_status = TRUE;
|
||||
# endif
|
||||
|
||||
save_cmdline(&save_ccline);
|
||||
update_screen(SOME_VALID);
|
||||
|
Reference in New Issue
Block a user