diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2022-07-30 16:54:05 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-07-30 16:54:05 +0100 |
commit | f39cfb72629f3e7fefaf578a3faa2619cd0654f8 (patch) | |
tree | a990dd08ff44924fdfe2b915644fe49e4996ea99 /src/getchar.c | |
parent | d90f91fe3075bb51668ed926182b2163da9df001 (diff) |
patch 9.0.0114: the command line takes up space even when not usedv9.0.0114
Problem: The command line takes up space even when not used.
Solution: Allow for 'cmdheight' to be set to zero. (Shougo Matsushita,
closes #10675, closes #940)
Diffstat (limited to 'src/getchar.c')
-rw-r--r-- | src/getchar.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/getchar.c b/src/getchar.c index a3de6509f5..f3dbe4a849 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -2096,6 +2096,10 @@ getchar_common(typval_T *argvars, typval_T *rettv) --no_mapping; --allow_keys; + // redraw the screen after getchar() + if (p_ch == 0) + update_screen(CLEAR); + set_vim_var_nr(VV_MOUSE_WIN, 0); set_vim_var_nr(VV_MOUSE_WINID, 0); set_vim_var_nr(VV_MOUSE_LNUM, 0); |