mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 03:58:32 +00:00
cmdheight=0: fix bugs #18961
Continue of #16251 Fix #18953 Fix #18960 Fix #18958 Fix #18955 Fix #18970 Fix #18983 Fix #18995 Fix #19112
This commit is contained in:
@@ -891,7 +891,7 @@ char_u *msg_may_trunc(bool force, char_u *s)
|
||||
|
||||
room = (Rows - cmdline_row - 1) * Columns + sc_col - 1;
|
||||
if ((force || (shortmess(SHM_TRUNC) && !exmode_active))
|
||||
&& (int)STRLEN(s) - room > 0) {
|
||||
&& (int)STRLEN(s) - room > 0 && p_ch > 0) {
|
||||
int size = vim_strsize((char *)s);
|
||||
|
||||
// There may be room anyway when there are multibyte chars.
|
||||
@@ -3083,10 +3083,11 @@ void msg_clr_eos_force(void)
|
||||
msg_row = msg_grid_pos;
|
||||
}
|
||||
|
||||
grid_fill(&msg_grid_adj, msg_row, msg_row + 1, msg_startcol, msg_endcol,
|
||||
' ', ' ', HL_ATTR(HLF_MSG));
|
||||
if (p_ch > 0) {
|
||||
grid_fill(&msg_grid_adj, msg_row + 1, Rows, 0, Columns, ' ', ' ', HL_ATTR(HLF_MSG));
|
||||
grid_fill(&msg_grid_adj, msg_row, msg_row + 1, msg_startcol, msg_endcol,
|
||||
' ', ' ', HL_ATTR(HLF_MSG));
|
||||
grid_fill(&msg_grid_adj, msg_row + 1, Rows, 0, Columns,
|
||||
' ', ' ', HL_ATTR(HLF_MSG));
|
||||
}
|
||||
|
||||
redraw_cmdline = true; // overwritten the command line
|
||||
|
Reference in New Issue
Block a user