Karsten Hopp a4f14f
To: vim-dev@vim.org
Karsten Hopp a4f14f
Subject: Patch 7.0.091
Karsten Hopp a4f14f
Fcc: outbox
Karsten Hopp a4f14f
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp a4f14f
Mime-Version: 1.0
Karsten Hopp a4f14f
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp a4f14f
Content-Transfer-Encoding: 8bit
Karsten Hopp a4f14f
------------
Karsten Hopp a4f14f
Karsten Hopp a4f14f
Patch 7.0.091
Karsten Hopp a4f14f
Problem:    Using winrestview() while 'showcmd' is set causes the cursor to be
Karsten Hopp a4f14f
	    displayed in the wrong position. (Yakov Lerner)
Karsten Hopp a4f14f
Solution:   Set the window topline properly.
Karsten Hopp a4f14f
Files:	    src/eval.c
Karsten Hopp a4f14f
Karsten Hopp a4f14f
Karsten Hopp a4f14f
*** ../vim-7.0.090/src/eval.c	Tue Sep  5 12:57:14 2006
Karsten Hopp a4f14f
--- src/eval.c	Tue Sep  5 21:21:37 2006
Karsten Hopp a4f14f
***************
Karsten Hopp a4f14f
*** 16225,16231 ****
Karsten Hopp a4f14f
  	curwin->w_curswant = get_dict_number(dict, (char_u *)"curswant");
Karsten Hopp a4f14f
  	curwin->w_set_curswant = FALSE;
Karsten Hopp a4f14f
  
Karsten Hopp a4f14f
! 	curwin->w_topline = get_dict_number(dict, (char_u *)"topline");
Karsten Hopp a4f14f
  #ifdef FEAT_DIFF
Karsten Hopp a4f14f
  	curwin->w_topfill = get_dict_number(dict, (char_u *)"topfill");
Karsten Hopp a4f14f
  #endif
Karsten Hopp a4f14f
--- 16225,16231 ----
Karsten Hopp a4f14f
  	curwin->w_curswant = get_dict_number(dict, (char_u *)"curswant");
Karsten Hopp a4f14f
  	curwin->w_set_curswant = FALSE;
Karsten Hopp a4f14f
  
Karsten Hopp a4f14f
! 	set_topline(curwin, get_dict_number(dict, (char_u *)"topline"));
Karsten Hopp a4f14f
  #ifdef FEAT_DIFF
Karsten Hopp a4f14f
  	curwin->w_topfill = get_dict_number(dict, (char_u *)"topfill");
Karsten Hopp a4f14f
  #endif
Karsten Hopp a4f14f
*** ../vim-7.0.090/src/version.c	Tue Sep  5 20:56:11 2006
Karsten Hopp a4f14f
--- src/version.c	Wed Sep  6 22:12:31 2006
Karsten Hopp a4f14f
***************
Karsten Hopp a4f14f
*** 668,669 ****
Karsten Hopp a4f14f
--- 668,671 ----
Karsten Hopp a4f14f
  {   /* Add new patch number below this line */
Karsten Hopp a4f14f
+ /**/
Karsten Hopp a4f14f
+     91,
Karsten Hopp a4f14f
  /**/
Karsten Hopp a4f14f
Karsten Hopp a4f14f
-- 
Karsten Hopp a4f14f
Shit makes the flowers grow and that's beautiful
Karsten Hopp a4f14f
Karsten Hopp a4f14f
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp a4f14f
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp a4f14f
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp a4f14f
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///