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