4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When using ":vimgrep" with the "j" flag folds from another buffer
12 may be displayed. (A.Politz)
13 Solution: When not jumping to another buffer update the folds.
17 *** ../vim-7.1.110/src/quickfix.c Thu Jun 28 21:23:52 2007
18 --- src/quickfix.c Fri Sep 14 22:16:23 2007
24 ! * If there is only one window and is the quickfix window, create a new
25 ! * one above the quickfix window.
27 if (((firstwin == lastwin) && bt_quickfix(curbuf)) || !usable_win)
33 ! * If there is only one window and it is the quickfix window, create a
34 ! * new one above the quickfix window.
36 if (((firstwin == lastwin) && bt_quickfix(curbuf)) || !usable_win)
42 int duplicate_name = FALSE;
44 + int redraw_for_dummy = FALSE;
46 buf_T *first_match_buf = NULL;
51 /* Remember that a buffer with this name already exists. */
52 duplicate_name = (buf != NULL);
54 + redraw_for_dummy = TRUE;
56 #if defined(FEAT_AUTOCMD) && defined(FEAT_SYN_HL)
57 /* Don't do Filetype autocommands to avoid loading syntax and
61 if (qi->qf_lists[qi->qf_curlist].qf_count > 0)
63 if ((flags & VGR_NOJUMP) == 0)
66 qf_jump(qi, 0, 0, eap->forceit);
68 + /* If we jumped to another buffer redrawing will already be
70 + redraw_for_dummy = FALSE;
74 EMSG2(_(e_nomatch2), s);
76 + /* If we loaded a dummy buffer into the current window, the autocommands
77 + * may have messed up things, need to redraw and recompute folds. */
78 + if (redraw_for_dummy)
81 + foldUpdateAll(curwin);
83 + redraw_later(NOT_VALID);
88 vim_free(regmatch.regprog);
89 *** ../vim-7.1.110/src/version.c Sat Sep 15 14:48:57 2007
90 --- src/version.c Sun Sep 16 13:23:48 2007
94 { /* Add new patch number below this line */
100 Trees moving back and forth is what makes the wind blow.
102 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
103 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
104 \\\ download, build and distribute -- http://www.A-A-P.org ///
105 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///