|
Karsten Hopp |
452c73 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
452c73 |
Subject: patch 7.1.085
|
|
Karsten Hopp |
452c73 |
Fcc: outbox
|
|
Karsten Hopp |
452c73 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
452c73 |
Mime-Version: 1.0
|
|
Karsten Hopp |
452c73 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
452c73 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
452c73 |
------------
|
|
Karsten Hopp |
452c73 |
|
|
Karsten Hopp |
452c73 |
Patch 7.1.085
|
|
Karsten Hopp |
452c73 |
Problem: ":e fold.c" then ":sp fold.c" results in folds of original window
|
|
Karsten Hopp |
452c73 |
to disappear. (Akita Noek)
|
|
Karsten Hopp |
452c73 |
Solution: Invoke foldUpdateAll() for all windows of the changed buffer.
|
|
Karsten Hopp |
452c73 |
(Martin Toft)
|
|
Karsten Hopp |
452c73 |
Files: src/ex_cmds.c
|
|
Karsten Hopp |
452c73 |
|
|
Karsten Hopp |
452c73 |
|
|
Karsten Hopp |
452c73 |
*** ../vim-7.1.084/src/ex_cmds.c Tue Aug 21 15:05:54 2007
|
|
Karsten Hopp |
452c73 |
--- src/ex_cmds.c Tue Aug 21 15:02:43 2007
|
|
Karsten Hopp |
452c73 |
***************
|
|
Karsten Hopp |
452c73 |
*** 2974,2980 ****
|
|
Karsten Hopp |
452c73 |
* 'fnum' is the number of the file, if zero use ffname/sfname.
|
|
Karsten Hopp |
452c73 |
*
|
|
Karsten Hopp |
452c73 |
* Return 1 for "normal" error, 2 for "not written" error, 0 for success
|
|
Karsten Hopp |
452c73 |
! * -1 for succesfully opening another file.
|
|
Karsten Hopp |
452c73 |
* 'lnum' is the line number for the cursor in the new file (if non-zero).
|
|
Karsten Hopp |
452c73 |
*/
|
|
Karsten Hopp |
452c73 |
int
|
|
Karsten Hopp |
452c73 |
--- 2974,2980 ----
|
|
Karsten Hopp |
452c73 |
* 'fnum' is the number of the file, if zero use ffname/sfname.
|
|
Karsten Hopp |
452c73 |
*
|
|
Karsten Hopp |
452c73 |
* Return 1 for "normal" error, 2 for "not written" error, 0 for success
|
|
Karsten Hopp |
452c73 |
! * -1 for successfully opening another file.
|
|
Karsten Hopp |
452c73 |
* 'lnum' is the line number for the cursor in the new file (if non-zero).
|
|
Karsten Hopp |
452c73 |
*/
|
|
Karsten Hopp |
452c73 |
int
|
|
Karsten Hopp |
452c73 |
***************
|
|
Karsten Hopp |
452c73 |
*** 3584,3592 ****
|
|
Karsten Hopp |
452c73 |
curwin_init();
|
|
Karsten Hopp |
452c73 |
|
|
Karsten Hopp |
452c73 |
#ifdef FEAT_FOLDING
|
|
Karsten Hopp |
452c73 |
! /* It's like all lines in the buffer changed. Need to update
|
|
Karsten Hopp |
452c73 |
! * automatic folding. */
|
|
Karsten Hopp |
452c73 |
foldUpdateAll(curwin);
|
|
Karsten Hopp |
452c73 |
#endif
|
|
Karsten Hopp |
452c73 |
|
|
Karsten Hopp |
452c73 |
/* Change directories when the 'acd' option is set. */
|
|
Karsten Hopp |
452c73 |
--- 3584,3603 ----
|
|
Karsten Hopp |
452c73 |
curwin_init();
|
|
Karsten Hopp |
452c73 |
|
|
Karsten Hopp |
452c73 |
#ifdef FEAT_FOLDING
|
|
Karsten Hopp |
452c73 |
! /* It's possible that all lines in the buffer changed. Need to update
|
|
Karsten Hopp |
452c73 |
! * automatic folding for all windows where it's used. */
|
|
Karsten Hopp |
452c73 |
! # ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
452c73 |
! {
|
|
Karsten Hopp |
452c73 |
! win_T *win;
|
|
Karsten Hopp |
452c73 |
! tabpage_T *tp;
|
|
Karsten Hopp |
452c73 |
!
|
|
Karsten Hopp |
452c73 |
! FOR_ALL_TAB_WINDOWS(tp, win)
|
|
Karsten Hopp |
452c73 |
! if (win->w_buffer == curbuf)
|
|
Karsten Hopp |
452c73 |
! foldUpdateAll(win);
|
|
Karsten Hopp |
452c73 |
! }
|
|
Karsten Hopp |
452c73 |
! # else
|
|
Karsten Hopp |
452c73 |
foldUpdateAll(curwin);
|
|
Karsten Hopp |
452c73 |
+ # endif
|
|
Karsten Hopp |
452c73 |
#endif
|
|
Karsten Hopp |
452c73 |
|
|
Karsten Hopp |
452c73 |
/* Change directories when the 'acd' option is set. */
|
|
Karsten Hopp |
452c73 |
*** ../vim-7.1.084/src/version.c Tue Aug 21 15:05:54 2007
|
|
Karsten Hopp |
452c73 |
--- src/version.c Tue Aug 21 15:26:43 2007
|
|
Karsten Hopp |
452c73 |
***************
|
|
Karsten Hopp |
452c73 |
*** 668,669 ****
|
|
Karsten Hopp |
452c73 |
--- 668,671 ----
|
|
Karsten Hopp |
452c73 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
452c73 |
+ /**/
|
|
Karsten Hopp |
452c73 |
+ 85,
|
|
Karsten Hopp |
452c73 |
/**/
|
|
Karsten Hopp |
452c73 |
|
|
Karsten Hopp |
452c73 |
--
|
|
Karsten Hopp |
452c73 |
Your fault: core dumped
|
|
Karsten Hopp |
452c73 |
|
|
Karsten Hopp |
452c73 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
452c73 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
452c73 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
452c73 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|