mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:7.4.458
Problem: Issue 252: Cursor moves in a zero-height window. Solution: Check for zero height. (idea by Christian Brabandt) https://code.google.com/p/vim/source/detail?r=v7-4-458
This commit is contained in:
parent
0158539c77
commit
2fefb5e7d3
@ -146,6 +146,15 @@ void update_topline(void)
|
||||
if (!screen_valid(TRUE))
|
||||
return;
|
||||
|
||||
// If the window height is zero, just use the cursor line.
|
||||
if (curwin->w_height == 0) {
|
||||
curwin->w_topline = curwin->w_cursor.lnum;
|
||||
curwin->w_botline = curwin->w_topline;
|
||||
curwin->w_valid |= VALID_BOTLINE|VALID_BOTLINE_AP;
|
||||
curwin->w_scbind_pos = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
check_cursor_moved(curwin);
|
||||
if (curwin->w_valid & VALID_TOPLINE)
|
||||
return;
|
||||
|
@ -279,7 +279,7 @@ static int included_patches[] = {
|
||||
//461 NA
|
||||
//460 NA
|
||||
//459 NA
|
||||
//458,
|
||||
458,
|
||||
457,
|
||||
456,
|
||||
455,
|
||||
|
Loading…
Reference in New Issue
Block a user