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