commit | 846a2ff5f3a006fb612d1ece1962cb75ca06d0fe | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed May 28 11:35:37 2014 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Wed May 28 11:35:37 2014 +0200 |
tree | 64acc0eee444d20847081ae2e7ef93673b53aa7e | |
parent | cbc17d66be624d911354ef7a6f18a9c903e80731 [diff] [blame] |
updated for version 7.4.308 Problem: When using ":diffsplit" on an empty file the cursor is displayed on the command line. Solution: Limit the value of w_topfill.
diff --git a/src/diff.c b/src/diff.c index 49ca58a..98b791a 100644 --- a/src/diff.c +++ b/src/diff.c
@@ -622,6 +622,7 @@ wp->w_topfill = (n < 0 ? 0 : n); else if (n > 0 && n > wp->w_topfill) wp->w_topfill = n; + check_topfill(wp, FALSE); } } }