7496361
To: vim-dev@vim.org
7496361
Subject: Patch 7.1.267
7496361
Fcc: outbox
7496361
From: Bram Moolenaar <Bram@moolenaar.net>
7496361
Mime-Version: 1.0
7496361
Content-Type: text/plain; charset=ISO-8859-1
7496361
Content-Transfer-Encoding: 8bit
7496361
------------
7496361
7496361
Patch 7.1.267
7496361
Problem:    When changing folds cursor may be positioned in the wrong place.
7496361
Solution:   Call changed_window_setting_win() instead of
7496361
	    changed_window_setting().
7496361
Files:	    src/fold.c
7496361
7496361
7496361
*** ../vim-7.1.266/src/fold.c	Sun Jan 13 21:57:25 2008
7496361
--- src/fold.c	Wed Mar  5 12:48:43 2008
7496361
***************
7496361
*** 2307,2313 ****
7496361
  
7496361
      /* If some fold changed, need to redraw and position cursor. */
7496361
      if (fold_changed && wp->w_p_fen)
7496361
! 	changed_window_setting();
7496361
  
7496361
      /* If we updated folds past "bot", need to redraw more lines.  Don't do
7496361
       * this in other situations, the changed lines will be redrawn anyway and
7496361
--- 2307,2313 ----
7496361
  
7496361
      /* If some fold changed, need to redraw and position cursor. */
7496361
      if (fold_changed && wp->w_p_fen)
7496361
! 	changed_window_setting_win(wp);
7496361
  
7496361
      /* If we updated folds past "bot", need to redraw more lines.  Don't do
7496361
       * this in other situations, the changed lines will be redrawn anyway and
7496361
*** ../vim-7.1.266/src/version.c	Wed Feb 27 16:13:09 2008
7496361
--- src/version.c	Thu Mar  6 22:43:05 2008
7496361
***************
7496361
*** 668,669 ****
7496361
--- 668,671 ----
7496361
  {   /* Add new patch number below this line */
7496361
+ /**/
7496361
+     267,
7496361
  /**/
7496361
7496361
-- 
7496361
From "know your smileys":
7496361
 %	Bike accident.  A bit far-fetched, I suppose; although...
7496361
             o      _     _         _
7496361
     _o     /\_   _ \\o  (_)\__/o  (_)
7496361
   _< \_   _>(_) (_)/<_    \_| \   _|/' \/
7496361
  (_)>(_) (_)        (_)   (_)    (_)'  _\o_
7496361
7496361
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
7496361
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
7496361
\\\        download, build and distribute -- http://www.A-A-P.org        ///
7496361
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///