Mercurial > vim
diff src/fold.c @ 36:125e80798a85 v7.0021
updated for version 7.0021
author | vimboss |
---|---|
date | Thu, 09 Dec 2004 21:34:53 +0000 |
parents | f6033dcbaf31 |
children | 410fa1a31baf |
line wrap: on
line diff
--- a/src/fold.c +++ b/src/fold.c @@ -902,6 +902,8 @@ foldMoveTo(updown, dir, count) int level; int last; + checkupdate(curwin); + /* Repeat "count" times. */ for (n = 0; n < count; ++n) { @@ -2883,7 +2885,7 @@ foldRemove(gap, top, bot) { /* Found an entry below top. */ fold_changed = TRUE; - if (fp->fd_top + fp->fd_len > bot) + if (fp->fd_top + fp->fd_len - 1 > bot) { /* 5: Make fold that includes bot start below bot. */ foldMarkAdjustRecurse(&fp->fd_nested,