vim-patch:8.1.2419: with a long file name the hit-enter prompt appears

Problem:    With a long file name the hit-enter prompt appears. (J. Lewis
            Muir)
Solution:   When checking for text to wrap don't do this when outputing a CR.
0efd1bdcf4
This commit is contained in:
Stanley Chan
2020-10-01 22:56:46 -05:00
committed by Jan Edmund Lazo
parent c4cbf16c91
commit 306d96cd10
2 changed files with 18 additions and 1 deletions

View File

@@ -2000,7 +2000,7 @@ static void msg_puts_display(const char_u *str, int maxlen, int attr,
|| (*s == TAB && msg_col <= 7)
|| (utf_ptr2cells(s) > 1
&& msg_col <= 2))
: (msg_col + t_col >= Columns - 1
: ((*s != '\r' && msg_col + t_col >= Columns - 1)
|| (*s == TAB
&& msg_col + t_col >= ((Columns - 1) & ~7))
|| (utf_ptr2cells(s) > 1