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_cmds.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_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 1cf090cd81..311b9b7c2f 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -1011,7 +1011,6 @@ do_bang( if (addr_count == 0) // :! { // echo the command - dont_use_message_window(); msg_start(); msg_putchar(':'); msg_putchar('!'); @@ -3702,7 +3701,6 @@ ex_substitute(exarg_T *eap) int endcolumn = FALSE; // cursor in last column when done pos_T old_cursor = curwin->w_cursor; int start_nsubs; - int cmdheight0 = p_ch == 0; #ifdef FEAT_EVAL int save_ma = 0; int save_sandbox = 0; @@ -4012,14 +4010,6 @@ ex_substitute(exarg_T *eap) } } - if (cmdheight0) - { - // If cmdheight is 0, cmdheight must be set to 1 when we enter command - // line. - set_option_value((char_u *)"ch", 1L, NULL, 0); - redraw_statuslines(); - } - /* * Check for a match on each line. */ @@ -4902,10 +4892,6 @@ outofmem: changed_window_setting(); #endif - // Restore cmdheight - if (cmdheight0) - set_option_value((char_u *)"ch", 0L, NULL, 0); - vim_regfree(regmatch.regprog); vim_free(sub_copy); |