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