0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 9.0.0329: ":highlight" hangs when 'cmdheight' is zero

Problem:    ":highlight" hangs when 'cmdheight' is zero.
Solution:   Add to msg_col when using the message window. (closes #11014)
This commit is contained in:
Bram Moolenaar
2022-08-30 15:44:22 +01:00
parent e27d6e6382
commit 24735f2a19
3 changed files with 5 additions and 2 deletions

View File

@@ -2261,7 +2261,7 @@ msg_puts_attr_len(char *str, int maxlen, int attr)
#ifdef HAS_MESSAGE_WINDOW
/*
* Put text "t_s" until "s" in the message window.
* Put text "t_s" until "end" in the message window.
* "where" specifies where to put the text.
*/
static void
@@ -2308,7 +2308,7 @@ put_msg_win(win_T *wp, int where, char_u *t_s, char_u *end, linenr_T lnum)
redraw_win_later(wp, UPD_NOT_VALID);
// set msg_col so that a newline is written if needed
msg_col = (int)STRLEN(t_s);
msg_col += (int)(end - t_s);
}
#endif