diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-12-11 19:00:04 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-12-11 19:00:04 +0100 |
commit | 0efd1bdcf4891f9ef2537e4c3d50a379186dca5f (patch) | |
tree | d30f4ed13d1ab221b2483b49b3ae4bd157e15633 /src/message.c | |
parent | 99ebf22c523e3fdb491b2c92b6f3a7d42721361d (diff) |
patch 8.1.2419: with a long file name the hit-enter prompt appearsv8.1.2419
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.
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/message.c b/src/message.c index 9ecd194b59..0b690bb5d3 100644 --- a/src/message.c +++ b/src/message.c @@ -2080,7 +2080,7 @@ msg_puts_display( || (has_mbyte && (*mb_ptr2cells)(s) > 1 && msg_col <= 2)) : #endif - (msg_col + t_col >= Columns - 1 + ((*s != '\r' && msg_col + t_col >= Columns - 1) || (*s == TAB && msg_col + t_col >= ((Columns - 1) & ~7)) || (has_mbyte && (*mb_ptr2cells)(s) > 1 && msg_col + t_col >= Columns - 2))))) |