Mercurial > vim
changeset 1339:3bfd2e1e2609 v7.1.053
updated for version 7.1-053
author | vimboss |
---|---|
date | Sun, 05 Aug 2007 17:20:43 +0000 |
parents | 06e0f7482cef |
children | 8e42199f5121 |
files | src/message.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
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: