diff options
author | Will Stamper <epmatsw@gmail.com> | 2014-06-12 22:57:48 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-07-11 17:31:51 -0400 |
commit | fa1d9301f7f1c2b4ea426125e513d3724394df49 (patch) | |
tree | a6569ac56ad7260374587ca75ea8a4111cf776f9 /src/nvim/diff.c | |
parent | 1cdd4ff7f6ea2a6430ab96885bdbc98b23d619f0 (diff) | |
download | rneovim-fa1d9301f7f1c2b4ea426125e513d3724394df49.tar.gz rneovim-fa1d9301f7f1c2b4ea426125e513d3724394df49.tar.bz2 rneovim-fa1d9301f7f1c2b4ea426125e513d3724394df49.zip |
vim-patch:7.4.308 #832
Problem: When using ":diffsplit" on an empty file the cursor is displayed
on the command line.
Solution: Limit the value of w_topfill.
https://code.google.com/p/vim/source/detail?r=e3d2b8d83bb30c428a051f50791e454fcbc080af
Diffstat (limited to 'src/nvim/diff.c')
-rw-r--r-- | src/nvim/diff.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/diff.c b/src/nvim/diff.c index 20b40a7864..e7feacd4fb 100644 --- a/src/nvim/diff.c +++ b/src/nvim/diff.c @@ -598,6 +598,7 @@ static void diff_redraw(int dofold) } else if ((n > 0) && (n > wp->w_topfill)) { wp->w_topfill = n; } + check_topfill(wp, FALSE); } } } |