mirror of
https://github.com/vim/vim.git
synced 2025-10-20 08:14:18 -04:00
patch 9.0.1326: relative line number not updated with virtual text above
Problem: Relative line number not updated with virtual text above. Solution: Adjust the row for the line number for virtual text above. (closes #12004)
This commit is contained in:
@@ -1598,6 +1598,15 @@ win_line(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (number_only)
|
||||
{
|
||||
// skip over rows only used for virtual text above
|
||||
wlv.row += wlv.text_prop_above_count;
|
||||
if (wlv.row > endrow)
|
||||
return wlv.row;
|
||||
wlv.screen_row += wlv.text_prop_above_count;
|
||||
}
|
||||
#endif
|
||||
|
||||
// 'nowrap' or 'wrap' and a single line that doesn't fit: Advance to the
|
||||
|
Reference in New Issue
Block a user