1
0
forked from aniani/vim

patch 9.0.0306: buffer write message is two lines in message popup window

Problem:    Buffer write message is two lines in message popup window.
Solution:   Overwrite message if "msg_scroll" is off.
This commit is contained in:
Bram Moolenaar
2022-08-28 20:58:51 +01:00
parent 533c306921
commit f2fb54f641
4 changed files with 16 additions and 2 deletions

View File

@@ -1470,10 +1470,12 @@ msg_start(void)
#ifdef HAS_MESSAGE_WINDOW
if (use_message_window())
{
if (popup_message_win_visible() && msg_col > 0)
if (popup_message_win_visible() && msg_col > 0
&& (msg_scroll || !full_screen))
{
win_T *wp = popup_get_message_win();
// start a new line
curbuf = wp->w_buffer;
ml_append(wp->w_buffer->b_ml.ml_line_count,
(char_u *)"", (colnr_T)0, FALSE);