diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-31 14:46:18 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-31 14:46:18 +0100 |
commit | a2a8973e51a0052bb52e43a2b22e7ecdecc32003 (patch) | |
tree | 42700a5eab4930539b87591ad903f7271b527fc3 /src/ex_getln.c | |
parent | a63ad78ed31e36dbdf3a9cd28071dcdbefce7d19 (diff) |
patch 9.0.0340: the 'cmdheight' zero support causes too much troublev9.0.0340
Problem: The 'cmdheight' zero support causes too much trouble.
Solution: Revert support for 'cmdheight' being zero.
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 25073a869f..d425b3effb 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -1591,25 +1591,6 @@ getcmdline_int( int did_save_ccline = FALSE; int cmdline_type; int wild_type; - int cmdheight0 = p_ch == 0; - - if (cmdheight0) - { - int save_so = lastwin->w_p_so; - - // If cmdheight is 0, cmdheight must be set to 1 when we enter the - // command line. Set "made_cmdheight_nonzero" and reset 'scrolloff' to - // avoid scrolling the last window. - made_cmdheight_nonzero = TRUE; - lastwin->w_p_so = 0; - set_option_value((char_u *)"ch", 1L, NULL, 0); -#ifdef HAS_MESSAGE_WINDOW - popup_hide_message_win(); -#endif - update_screen(UPD_VALID); // redraw the screen NOW - made_cmdheight_nonzero = FALSE; - lastwin->w_p_so = save_so; - } // one recursion level deeper ++depth; @@ -2577,15 +2558,6 @@ theend: { char_u *p = ccline.cmdbuff; - if (cmdheight0) - { - made_cmdheight_nonzero = TRUE; - set_option_value((char_u *)"ch", 0L, NULL, 0); - // Redraw is needed for command line completion - redraw_all_later(UPD_NOT_VALID); - made_cmdheight_nonzero = FALSE; - } - --depth; if (did_save_ccline) restore_cmdline(&save_ccline); |