comparison src/quickfix.c @ 857:b933657f7c9d

updated for version 7.0g01
author vimboss
date Tue, 02 May 2006 22:08:30 +0000
parents 8cd729851562
children 99305c4c42d4
comparison
equal deleted inserted replaced
856:8cd729851562 857:b933657f7c9d
2151 * If a quickfix window is open but we have no errors to display, 2151 * If a quickfix window is open but we have no errors to display,
2152 * close the window. If a quickfix window is not open, then open 2152 * close the window. If a quickfix window is not open, then open
2153 * it if we have errors; otherwise, leave it closed. 2153 * it if we have errors; otherwise, leave it closed.
2154 */ 2154 */
2155 if (qi->qf_lists[qi->qf_curlist].qf_nonevalid 2155 if (qi->qf_lists[qi->qf_curlist].qf_nonevalid
2156 || qi->qf_curlist >= qi->qf_listcount) 2156 || qi->qf_curlist >= qi->qf_listcount)
2157 { 2157 {
2158 if (win != NULL) 2158 if (win != NULL)
2159 ex_cclose(eap); 2159 ex_cclose(eap);
2160 } 2160 }
2161 else if (win == NULL) 2161 else if (win == NULL)
3288 curbuf->b_flags &= ~BF_DUMMY; 3288 curbuf->b_flags &= ~BF_DUMMY;
3289 3289
3290 if (readfile(fname, NULL, 3290 if (readfile(fname, NULL,
3291 (linenr_T)0, (linenr_T)0, (linenr_T)MAXLNUM, 3291 (linenr_T)0, (linenr_T)0, (linenr_T)MAXLNUM,
3292 NULL, READ_NEW | READ_DUMMY) == OK 3292 NULL, READ_NEW | READ_DUMMY) == OK
3293 && !got_int
3293 && !(curbuf->b_flags & BF_NEW)) 3294 && !(curbuf->b_flags & BF_NEW))
3294 { 3295 {
3295 failed = FALSE; 3296 failed = FALSE;
3296 if (curbuf != newbuf) 3297 if (curbuf != newbuf)
3297 { 3298 {
3327 static void 3328 static void
3328 wipe_dummy_buffer(buf) 3329 wipe_dummy_buffer(buf)
3329 buf_T *buf; 3330 buf_T *buf;
3330 { 3331 {
3331 if (curbuf != buf) /* safety check */ 3332 if (curbuf != buf) /* safety check */
3333 {
3334 #if defined(FEAT_AUTOCMD) && defined(FEAT_EVAL)
3335 cleanup_T cs;
3336
3337 /* Reset the error/interrupt/exception state here so that aborting()
3338 * returns FALSE when wiping out the buffer. Otherwise it doesn't
3339 * work when got_int is set. */
3340 enter_cleanup(&cs);
3341 #endif
3342
3332 wipe_buffer(buf, FALSE); 3343 wipe_buffer(buf, FALSE);
3344
3345 #if defined(FEAT_AUTOCMD) && defined(FEAT_EVAL)
3346 /* Restore the error/interrupt/exception state if not discarded by a
3347 * new aborting error, interrupt, or uncaught exception. */
3348 leave_cleanup(&cs);
3349 #endif
3350 }
3333 } 3351 }
3334 3352
3335 /* 3353 /*
3336 * Unload the dummy buffer that load_dummy_buffer() created. 3354 * Unload the dummy buffer that load_dummy_buffer() created.
3337 */ 3355 */