comparison src/quickfix.c @ 1864:05c8ff7f1284 v7.2.162

updated for version 7.2-162
author vimboss
date Wed, 29 Apr 2009 09:52:12 +0000
parents cda8f3aceb85
children f13849167330
comparison
equal deleted inserted replaced
1863:63369d73b551 1864:05c8ff7f1284
2344 /* switch off 'swapfile' */ 2344 /* switch off 'swapfile' */
2345 set_option_value((char_u *)"swf", 0L, NULL, OPT_LOCAL); 2345 set_option_value((char_u *)"swf", 0L, NULL, OPT_LOCAL);
2346 set_option_value((char_u *)"bt", 0L, (char_u *)"quickfix", 2346 set_option_value((char_u *)"bt", 0L, (char_u *)"quickfix",
2347 OPT_LOCAL); 2347 OPT_LOCAL);
2348 set_option_value((char_u *)"bh", 0L, (char_u *)"wipe", OPT_LOCAL); 2348 set_option_value((char_u *)"bh", 0L, (char_u *)"wipe", OPT_LOCAL);
2349 set_option_value((char_u *)"diff", 0L, NULL, OPT_LOCAL); 2349 #ifdef FEAT_DIFF
2350 curwin->w_p_diff = FALSE;
2351 #endif
2352 #ifdef FEAT_FOLDING
2353 set_option_value((char_u *)"fdm", 0L, (char_u *)"manual",
2354 OPT_LOCAL);
2355 #endif
2350 } 2356 }
2351 2357
2352 /* Only set the height when still in the same tab page and there is no 2358 /* Only set the height when still in the same tab page and there is no
2353 * window to the side. */ 2359 * window to the side. */
2354 if (curtab == prevtab 2360 if (curtab == prevtab
2605 * autocommands. */ 2611 * autocommands. */
2606 set_option_value((char_u *)"ft", 0L, (char_u *)"qf", OPT_LOCAL); 2612 set_option_value((char_u *)"ft", 0L, (char_u *)"qf", OPT_LOCAL);
2607 curbuf->b_p_ma = FALSE; 2613 curbuf->b_p_ma = FALSE;
2608 2614
2609 #ifdef FEAT_AUTOCMD 2615 #ifdef FEAT_AUTOCMD
2616 keep_filetype = TRUE; /* don't detect 'filetype' */
2610 apply_autocmds(EVENT_BUFREADPOST, (char_u *)"quickfix", NULL, 2617 apply_autocmds(EVENT_BUFREADPOST, (char_u *)"quickfix", NULL,
2611 FALSE, curbuf); 2618 FALSE, curbuf);
2612 apply_autocmds(EVENT_BUFWINENTER, (char_u *)"quickfix", NULL, 2619 apply_autocmds(EVENT_BUFWINENTER, (char_u *)"quickfix", NULL,
2613 FALSE, curbuf); 2620 FALSE, curbuf);
2621 keep_filetype = FALSE;
2614 #endif 2622 #endif
2615 2623
2616 /* make sure it will be redrawn */ 2624 /* make sure it will be redrawn */
2617 redraw_curbuf_later(NOT_VALID); 2625 redraw_curbuf_later(NOT_VALID);
2618 2626