diff options
author | Shougo <Shougo.Matsu@gmail.com> | 2022-06-13 18:40:51 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-13 02:40:51 -0700 |
commit | 663cbe2620278eae658895f82f3eb9bc89310e73 (patch) | |
tree | 84708a2e6743eda4c351ffd311885039137b7b79 /src/nvim/normal.c | |
parent | 2f71d4708e997454a0d05d51122a56146b89af92 (diff) | |
download | rneovim-663cbe2620278eae658895f82f3eb9bc89310e73.tar.gz rneovim-663cbe2620278eae658895f82f3eb9bc89310e73.tar.bz2 rneovim-663cbe2620278eae658895f82f3eb9bc89310e73.zip |
feat: cmdheight=0 #16251
Fix https://github.com/neovim/neovim/issues/1004
Limitation: All outputs need hit-enter prompt.
Related:
https://github.com/neovim/neovim/pull/6732
https://github.com/neovim/neovim/pull/4382
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r-- | src/nvim/normal.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 3603e11f5d..87a9e1e765 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -2747,6 +2747,10 @@ void pop_showcmd(void) static void display_showcmd(void) { + if (p_ch < 1 && !ui_has(kUIMessages)) { + return; + } + int len; len = (int)STRLEN(showcmd_buf); showcmd_is_clear = (len == 0); |