4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: ":e fold.c" then ":sp fold.c" results in folds of original window
12 to disappear. (Akita Noek)
13 Solution: Invoke foldUpdateAll() for all windows of the changed buffer.
18 *** ../vim-7.1.084/src/ex_cmds.c Tue Aug 21 15:05:54 2007
19 --- src/ex_cmds.c Tue Aug 21 15:02:43 2007
22 * 'fnum' is the number of the file, if zero use ffname/sfname.
24 * Return 1 for "normal" error, 2 for "not written" error, 0 for success
25 ! * -1 for succesfully opening another file.
26 * 'lnum' is the line number for the cursor in the new file (if non-zero).
30 * 'fnum' is the number of the file, if zero use ffname/sfname.
32 * Return 1 for "normal" error, 2 for "not written" error, 0 for success
33 ! * -1 for successfully opening another file.
34 * 'lnum' is the line number for the cursor in the new file (if non-zero).
42 ! /* It's like all lines in the buffer changed. Need to update
43 ! * automatic folding. */
44 foldUpdateAll(curwin);
47 /* Change directories when the 'acd' option is set. */
52 ! /* It's possible that all lines in the buffer changed. Need to update
53 ! * automatic folding for all windows where it's used. */
54 ! # ifdef FEAT_WINDOWS
59 ! FOR_ALL_TAB_WINDOWS(tp, win)
60 ! if (win->w_buffer == curbuf)
64 foldUpdateAll(curwin);
68 /* Change directories when the 'acd' option is set. */
69 *** ../vim-7.1.084/src/version.c Tue Aug 21 15:05:54 2007
70 --- src/version.c Tue Aug 21 15:26:43 2007
74 { /* Add new patch number below this line */
80 Your fault: core dumped
82 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
83 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
84 \\\ download, build and distribute -- http://www.A-A-P.org ///
85 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///