diff options
author | Martin Tournoij <martin@arp242.net> | 2022-10-13 22:12:15 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-13 22:12:15 +0100 |
commit | ba43e76fcd5b2da57dbaa4d9a555793fe8ac344e (patch) | |
tree | 46d248575c130e6c338dc0aac5f66eabe2c2fef4 /src/screen.c | |
parent | 856c5d2bc7c3864f8b63a0ab3e376d5c5e51f1d5 (diff) |
patch 9.0.0747: too many #ifdefsv9.0.0747
Problem: Too many #ifdefs.
Solution: Gradudate the +cmdline_info feature. (Martin Tournoij,
closes #11330)
Diffstat (limited to 'src/screen.c')
-rw-r--r-- | src/screen.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/screen.c b/src/screen.c index d1dd5a4017..f8fca8a282 100644 --- a/src/screen.c +++ b/src/screen.c @@ -4420,7 +4420,6 @@ showmode(void) msg_clr_eos(); } -#ifdef FEAT_CMDL_INFO // In Visual mode the size of the selected area must be redrawn. if (VIsual_active) clear_showcmd(); @@ -4429,7 +4428,7 @@ showmode(void) // message and must be redrawn if (redrawing() && lastwin->w_status_height == 0) win_redr_ruler(lastwin, TRUE, FALSE); -#endif + redraw_cmdline = FALSE; redraw_mode = FALSE; clear_cmdline = FALSE; @@ -4790,18 +4789,17 @@ messaging(void) void comp_col(void) { -#if defined(FEAT_CMDL_INFO) int last_has_status = (p_ls == 2 || (p_ls == 1 && !ONE_WINDOW)); sc_col = 0; ru_col = 0; if (p_ru) { -# ifdef FEAT_STL_OPT +#ifdef FEAT_STL_OPT ru_col = (ru_wid ? ru_wid : COL_RULER) + 1; -# else +#else ru_col = COL_RULER + 1; -# endif +#endif // no last status line, adjust sc_col if (!last_has_status) sc_col = ru_col; @@ -4818,10 +4816,6 @@ comp_col(void) sc_col = 1; if (ru_col <= 0) ru_col = 1; -#else - sc_col = Columns; - ru_col = Columns; -#endif #ifdef FEAT_EVAL set_vim_var_nr(VV_ECHOSPACE, sc_col - 1); #endif |