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