comparison src/ex_getln.c @ 12477:68d7bc045dbe v8.0.1118

patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs commit https://github.com/vim/vim/commit/4033c55eca575777718c0701e26635a0cc47d907 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 16 20:54:51 2017 +0200 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.
author Christian Brabandt <cb@256bit.org>
date Sat, 16 Sep 2017 21:00:06 +0200
parents 1ff5e5dfa9b0
children 158917d728b4
comparison
equal deleted inserted replaced
12476:2516383741e6 12477:68d7bc045dbe
1123 set_imsearch_global(); 1123 set_imsearch_global();
1124 } 1124 }
1125 #ifdef CURSOR_SHAPE 1125 #ifdef CURSOR_SHAPE
1126 ui_cursor_shape(); /* may show different cursor shape */ 1126 ui_cursor_shape(); /* may show different cursor shape */
1127 #endif 1127 #endif
1128 #if defined(FEAT_WINDOWS) && defined(FEAT_KEYMAP) 1128 #if defined(FEAT_KEYMAP)
1129 /* Show/unshow value of 'keymap' in status lines later. */ 1129 /* Show/unshow value of 'keymap' in status lines later. */
1130 status_redraw_curbuf(); 1130 status_redraw_curbuf();
1131 #endif 1131 #endif
1132 goto cmdline_not_changed; 1132 goto cmdline_not_changed;
1133 1133
1964 } 1964 }
1965 else 1965 else
1966 end_pos = curwin->w_cursor; /* shutup gcc 4 */ 1966 end_pos = curwin->w_cursor; /* shutup gcc 4 */
1967 1967
1968 validate_cursor(); 1968 validate_cursor();
1969 # ifdef FEAT_WINDOWS
1970 /* May redraw the status line to show the cursor position. */ 1969 /* May redraw the status line to show the cursor position. */
1971 if (p_ru && curwin->w_status_height > 0) 1970 if (p_ru && curwin->w_status_height > 0)
1972 curwin->w_redr_status = TRUE; 1971 curwin->w_redr_status = TRUE;
1973 # endif
1974 1972
1975 save_cmdline(&save_ccline); 1973 save_cmdline(&save_ccline);
1976 update_screen(SOME_VALID); 1974 update_screen(SOME_VALID);
1977 restore_cmdline(&save_ccline); 1975 restore_cmdline(&save_ccline);
1978 1976