Mercurial > vim
diff src/message.c @ 1339:3bfd2e1e2609 v7.1.053
updated for version 7.1-053
author | vimboss |
---|---|
date | Sun, 05 Aug 2007 17:20:43 +0000 |
parents | a5fd859f69f1 |
children | 6974b167d75e |
line wrap: on
line diff
--- a/src/message.c +++ b/src/message.c @@ -1842,7 +1842,7 @@ msg_puts_display(str, maxlen, attr, recu int wrap; did_wait_return = FALSE; - while (*s != NUL && (maxlen < 0 || (int)(s - str) < maxlen)) + while ((maxlen < 0 || (int)(s - str) < maxlen) && *s != NUL) { /* * We are at the end of the screen line when: