073263
To: vim_dev@googlegroups.com
073263
Subject: Patch 7.4.458
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.458
073263
Problem:    Issue 252: Cursor moves in a zero-height window.
073263
Solution:   Check for zero height. (idea by Christian Brabandt)
073263
Files:	    src/move.c
073263
073263
073263
*** ../vim-7.4.457/src/move.c	2014-03-28 21:49:26.854248777 +0100
073263
--- src/move.c	2014-09-23 18:27:33.138822349 +0200
073263
***************
073263
*** 183,188 ****
073263
--- 183,200 ----
073263
      if (!screen_valid(TRUE))
073263
  	return;
073263
  
073263
+     /* If the window height is zero just use the cursor line. */
073263
+     if (curwin->w_height == 0)
073263
+     {
073263
+ 	curwin->w_topline = curwin->w_cursor.lnum;
073263
+ 	curwin->w_botline = curwin->w_topline;
073263
+ 	curwin->w_valid |= VALID_BOTLINE|VALID_BOTLINE_AP;
073263
+ #ifdef FEAT_SCROLLBIND
073263
+ 	curwin->w_scbind_pos = 1;
073263
+ #endif
073263
+ 	return;
073263
+     }
073263
+ 
073263
      check_cursor_moved(curwin);
073263
      if (curwin->w_valid & VALID_TOPLINE)
073263
  	return;
073263
*** ../vim-7.4.457/src/version.c	2014-09-23 16:49:38.798809517 +0200
073263
--- src/version.c	2014-09-23 17:50:55.642817549 +0200
073263
***************
073263
*** 743,744 ****
073263
--- 743,746 ----
073263
  {   /* Add new patch number below this line */
073263
+ /**/
073263
+     458,
073263
  /**/
073263
073263
-- 
073263
I'm so disorganized my keyboard isn't even in alphabetical order!
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    ///