mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 03:16:31 +00:00
vim-patch:9.0.1016: screenpos() does not count filler lines for diff mode
Problem: screenpos() does not count filler lines for diff mode.
Solution: Add filler lines. (closes 11658)
1cb16c3a20
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -926,6 +926,8 @@ void textpos2screenpos(win_T *wp, pos_T *pos, int *rowp, int *scolp, int *ccolp,
|
||||
linenr_T lnum = pos->lnum;
|
||||
is_folded = hasFoldingWin(wp, lnum, &lnum, NULL, true, NULL);
|
||||
row = plines_m_win(wp, wp->w_topline, lnum - 1) + 1;
|
||||
// Add filler lines above this buffer line.
|
||||
row += win_get_fill(wp, lnum);
|
||||
visible_row = true;
|
||||
} else if (!local || pos->lnum < wp->w_topline) {
|
||||
row = 0;
|
||||
|
Reference in New Issue
Block a user