diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-09-16 10:07:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-16 10:07:50 +0200 |
commit | 0b7a3c173c929085f54a178c9fa852481d5f021e (patch) | |
tree | 29816f88c85331e8b55cd2a113ab82263ee82dc4 /src/nvim/screen.c | |
parent | 279c7b11fb89776f89789ee7e0c4f2624a10d156 (diff) | |
parent | 708bd686516b420c2b65f4bc4d2c58fe43fb945e (diff) | |
download | rneovim-0b7a3c173c929085f54a178c9fa852481d5f021e.tar.gz rneovim-0b7a3c173c929085f54a178c9fa852481d5f021e.tar.bz2 rneovim-0b7a3c173c929085f54a178c9fa852481d5f021e.zip |
Merge pull request #20188 from bfredl/zerocmdline
feat(ui): use msg_grid based implementation for cmdheight=0
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r-- | src/nvim/screen.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 0ec6834364..cdfb1e9ee1 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -442,7 +442,7 @@ void redraw_wildmenu(expand_T *xp, int num_matches, char **matches, int match, i // Put the wildmenu just above the command line. If there is // no room, scroll the screen one line up. if (cmdline_row == Rows - 1) { - msg_scroll_up(false); + msg_scroll_up(false, false); msg_scrolled++; } else { cmdline_row++; @@ -1173,7 +1173,9 @@ bool redrawing(void) /// Return true if printing messages should currently be done. bool messaging(void) { - return !(p_lz && char_avail() && !KeyTyped) && ui_has_messages(); + // TODO(bfredl): with general support for "async" messages with p_ch, + // this should be re-enabled. + return !(p_lz && char_avail() && !KeyTyped) && (p_ch > 0 || ui_has(kUIMessages)); } #define COL_RULER 17 // columns needed by standard ruler |