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