diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-12-07 18:36:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-07 18:36:58 +0100 |
commit | ddf48193e6f86163a0ecae76bc4b802b07135acb (patch) | |
tree | e6d4b38538430fa7bd889e738ed54f463bc555c2 /src | |
parent | a2db756206512eca4990abad8d9dad890ade5c0c (diff) | |
parent | b326bf5f419b345d50407be4fb43b937510112a4 (diff) | |
download | rneovim-ddf48193e6f86163a0ecae76bc4b802b07135acb.tar.gz rneovim-ddf48193e6f86163a0ecae76bc4b802b07135acb.tar.bz2 rneovim-ddf48193e6f86163a0ecae76bc4b802b07135acb.zip |
Merge pull request #16559 from zeertzjq/filler-end-row
fix(screen): do not draw filler lines post eof if already at last row
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 2ce2be0bfd..a3ec6e26a2 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -1692,7 +1692,7 @@ static void win_update(win_T *wp, Providers *providers) if (eof) { // we hit the end of the file wp->w_botline = buf->b_ml.ml_line_count + 1; j = win_get_fill(wp, wp->w_botline); - if (j > 0 && !wp->w_botfill) { + if (j > 0 && !wp->w_botfill && row < wp->w_grid.Rows) { // Display filler text below last line. win_line() will check // for ml_line_count+1 and only draw filler lines foldinfo_T info = FOLDINFO_INIT; |