Mercurial > vim
diff src/edit.c @ 383:8c229eb52e34 v7.0099
updated for version 7.0099
author | vimboss |
---|---|
date | Fri, 01 Jul 2005 22:41:52 +0000 |
parents | 6c62b9b939bd |
children | 06234af3a8b7 |
line wrap: on
line diff
--- a/src/edit.c +++ b/src/edit.c @@ -2632,7 +2632,7 @@ ins_compl_next_buf(buf, flag) #ifdef FEAT_WINDOWS if (buf == curbuf) /* first call for this flag/expansion */ wp = curwin; - while ((wp = wp->w_next != NULL ? wp->w_next : firstwin) != curwin + while ((wp = (wp->w_next != NULL ? wp->w_next : firstwin)) != curwin && wp->w_buffer->b_scanned) ; buf = wp->w_buffer; @@ -2644,7 +2644,7 @@ ins_compl_next_buf(buf, flag) /* 'b' (just loaded buffers), 'u' (just non-loaded buffers) or 'U' * (unlisted buffers) * When completing whole lines skip unloaded buffers. */ - while ((buf = buf->b_next != NULL ? buf->b_next : firstbuf) != curbuf + while ((buf = (buf->b_next != NULL ? buf->b_next : firstbuf)) != curbuf && ((flag == 'U' ? buf->b_p_bl : (!buf->b_p_bl