90c33db
To: vim-dev@vim.org
90c33db
Subject: Patch 7.0.075
90c33db
Fcc: outbox
90c33db
From: Bram Moolenaar <Bram@moolenaar.net>
90c33db
Mime-Version: 1.0
90c33db
Content-Type: text/plain; charset=ISO-8859-1
90c33db
Content-Transfer-Encoding: 8bit
90c33db
------------
90c33db
90c33db
Patch 7.0.075
90c33db
Problem:    winsaveview() did not store the actual value of the desired cursor
90c33db
	    column.  This could move the cursor in the matchparen plugin.
90c33db
Solution:   Call update_curswant() before using the value w_curswant.
90c33db
Files:	    src/eval.c
90c33db
90c33db
90c33db
*** ../vim-7.0.074/src/eval.c	Tue Aug 29 17:28:56 2006
90c33db
--- src/eval.c	Tue Aug 29 21:53:26 2006
90c33db
***************
90c33db
*** 16232,16237 ****
90c33db
--- 16232,16238 ----
90c33db
  #ifdef FEAT_VIRTUALEDIT
90c33db
      dict_add_nr_str(dict, "coladd", (long)curwin->w_cursor.coladd, NULL);
90c33db
  #endif
90c33db
+     update_curswant();
90c33db
      dict_add_nr_str(dict, "curswant", (long)curwin->w_curswant, NULL);
90c33db
  
90c33db
      dict_add_nr_str(dict, "topline", (long)curwin->w_topline, NULL);
90c33db
*** ../vim-7.0.074/src/version.c	Tue Aug 29 21:30:15 2006
90c33db
--- src/version.c	Tue Aug 29 21:57:03 2006
90c33db
***************
90c33db
*** 668,669 ****
90c33db
--- 668,671 ----
90c33db
  {   /* Add new patch number below this line */
90c33db
+ /**/
90c33db
+     75,
90c33db
  /**/
90c33db
90c33db
-- 
90c33db
Women are probably the main cause of free software starvation.
90c33db
90c33db
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
90c33db
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
90c33db
\\\        download, build and distribute -- http://www.A-A-P.org        ///
90c33db
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///