comparison src/main.c @ 640:8a5a95f7ef2a v7.0185

updated for version 7.0185
author vimboss
date Sun, 22 Jan 2006 23:30:12 +0000
parents 732c7ae5743e
children e4fa26ce8769
comparison
equal deleted inserted replaced
639:c79d4df4686e 640:8a5a95f7ef2a
986 */ 986 */
987 if (skip_redraw || exmode_active) 987 if (skip_redraw || exmode_active)
988 skip_redraw = FALSE; 988 skip_redraw = FALSE;
989 else if (do_redraw || stuff_empty()) 989 else if (do_redraw || stuff_empty())
990 { 990 {
991 #if defined(FEAT_DIFF) && defined(FEAT_SCROLLBIND)
992 /* Scroll-binding for diff mode may have been postponed until
993 * here. Avoids doing it for every change. */
994 if (diff_need_scrollbind)
995 {
996 check_scrollbind((linenr_T)0, 0L);
997 diff_need_scrollbind = FALSE;
998 }
999 #endif
991 #if defined(FEAT_FOLDING) && defined(FEAT_VISUAL) 1000 #if defined(FEAT_FOLDING) && defined(FEAT_VISUAL)
992 /* Include a closed fold completely in the Visual area. */ 1001 /* Include a closed fold completely in the Visual area. */
993 foldAdjustVisual(); 1002 foldAdjustVisual();
994 #endif 1003 #endif
995 #ifdef FEAT_FOLDING 1004 #ifdef FEAT_FOLDING
1151 apply_autocmds(EVENT_BUFWINLEAVE, buf->b_fname, buf->b_fname, 1160 apply_autocmds(EVENT_BUFWINLEAVE, buf->b_fname, buf->b_fname,
1152 FALSE, buf); 1161 FALSE, buf);
1153 buf->b_changedtick = -1; /* note that we did it already */ 1162 buf->b_changedtick = -1; /* note that we did it already */
1154 wp = firstwin; /* restart, window may be closed */ 1163 wp = firstwin; /* restart, window may be closed */
1155 } 1164 }
1165 # ifdef FEAT_WINDOWS
1156 else 1166 else
1157 wp = wp->w_next; 1167 wp = wp->w_next;
1158 } 1168 # else
1169 break;
1170 # endif
1171 }
1172
1159 /* Trigger BufUnload for buffers that are loaded */ 1173 /* Trigger BufUnload for buffers that are loaded */
1160 for (buf = firstbuf; buf != NULL; buf = buf->b_next) 1174 for (buf = firstbuf; buf != NULL; buf = buf->b_next)
1161 if (buf->b_ml.ml_mfp != NULL) 1175 if (buf->b_ml.ml_mfp != NULL)
1162 { 1176 {
1163 apply_autocmds(EVENT_BUFUNLOAD, buf->b_fname, buf->b_fname, 1177 apply_autocmds(EVENT_BUFUNLOAD, buf->b_fname, buf->b_fname,