Blame SOURCES/7.4.491

22c937
To: vim_dev@googlegroups.com
22c937
Subject: Patch 7.4.491
22c937
Fcc: outbox
22c937
From: Bram Moolenaar <Bram@moolenaar.net>
22c937
Mime-Version: 1.0
22c937
Content-Type: text/plain; charset=UTF-8
22c937
Content-Transfer-Encoding: 8bit
22c937
------------
22c937
22c937
Patch 7.4.491
22c937
Problem:    When winrestview() has a negative "topline" value there are
22c937
	    display errors.
22c937
Solution:   Correct a negative value to 1. (Hirohito Higashi)
22c937
Files:	    src/eval.c
22c937
22c937
22c937
*** ../vim-7.4.490/src/eval.c	2014-09-19 20:45:19.266454650 +0200
22c937
--- src/eval.c	2014-10-31 15:43:55.811056060 +0100
22c937
***************
22c937
*** 19576,19582 ****
22c937
  # endif
22c937
  	changed_window_setting();
22c937
  
22c937
! 	if (curwin->w_topline == 0)
22c937
  	    curwin->w_topline = 1;
22c937
  	if (curwin->w_topline > curbuf->b_ml.ml_line_count)
22c937
  	    curwin->w_topline = curbuf->b_ml.ml_line_count;
22c937
--- 19576,19582 ----
22c937
  # endif
22c937
  	changed_window_setting();
22c937
  
22c937
! 	if (curwin->w_topline <= 0)
22c937
  	    curwin->w_topline = 1;
22c937
  	if (curwin->w_topline > curbuf->b_ml.ml_line_count)
22c937
  	    curwin->w_topline = curbuf->b_ml.ml_line_count;
22c937
*** ../vim-7.4.490/src/version.c	2014-10-31 13:54:21.843214469 +0100
22c937
--- src/version.c	2014-10-31 15:44:59.555054524 +0100
22c937
***************
22c937
*** 743,744 ****
22c937
--- 743,746 ----
22c937
  {   /* Add new patch number below this line */
22c937
+ /**/
22c937
+     491,
22c937
  /**/
22c937
22c937
-- 
22c937
GUARD #2:  Wait a minute -- supposing two swallows carried it together?
22c937
GUARD #1:  No, they'd have to have it on a line.
22c937
GUARD #2:  Well, simple!  They'd just use a standard creeper!
22c937
GUARD #1:  What, held under the dorsal guiding feathers?
22c937
GUARD #2:  Well, why not?
22c937
                                  The Quest for the Holy Grail (Monty Python)
22c937
22c937
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
22c937
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
22c937
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
22c937
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///