comparison 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
comparison
equal deleted inserted replaced
35:8f3a526c2fe1 36:125e80798a85
899 int maybe_small; 899 int maybe_small;
900 garray_T *gap; 900 garray_T *gap;
901 fold_T *fp; 901 fold_T *fp;
902 int level; 902 int level;
903 int last; 903 int last;
904
905 checkupdate(curwin);
904 906
905 /* Repeat "count" times. */ 907 /* Repeat "count" times. */
906 for (n = 0; n < count; ++n) 908 for (n = 0; n < count; ++n)
907 { 909 {
908 /* Find nested folds. Stop when a fold is closed. The deepest fold 910 /* Find nested folds. Stop when a fold is closed. The deepest fold
2881 } 2883 }
2882 if (fp->fd_top >= top) 2884 if (fp->fd_top >= top)
2883 { 2885 {
2884 /* Found an entry below top. */ 2886 /* Found an entry below top. */
2885 fold_changed = TRUE; 2887 fold_changed = TRUE;
2886 if (fp->fd_top + fp->fd_len > bot) 2888 if (fp->fd_top + fp->fd_len - 1 > bot)
2887 { 2889 {
2888 /* 5: Make fold that includes bot start below bot. */ 2890 /* 5: Make fold that includes bot start below bot. */
2889 foldMarkAdjustRecurse(&fp->fd_nested, 2891 foldMarkAdjustRecurse(&fp->fd_nested,
2890 (linenr_T)0, (long)(bot - fp->fd_top), 2892 (linenr_T)0, (long)(bot - fp->fd_top),
2891 (linenr_T)MAXLNUM, (long)(fp->fd_top - bot - 1)); 2893 (linenr_T)MAXLNUM, (long)(fp->fd_top - bot - 1));