0
0
mirror of https://github.com/vim/vim.git synced 2025-10-18 07:54:29 -04:00

patch 9.0.1506: line number not displayed when using 'smoothscroll'

Problem:    Line number not displayed when using 'smoothscroll'.
Solution:   Adjust condition for showing the line number. (closes #12333)
This commit is contained in:
zeertzjq
2023-05-02 20:52:59 +01:00
committed by Bram Moolenaar
parent a93d9cdc74
commit 88bb3e0a48
7 changed files with 61 additions and 14 deletions

View File

@@ -389,7 +389,7 @@ handle_lnum_col(
// When there are text properties above the line put the line number
// below them.
if (wlv->row == lnum_row
&& (wp->w_skipcol == 0 || wlv->row > wp->w_winrow
&& (wp->w_skipcol == 0 || wlv->row > 0
|| (wp->w_p_nu && wp->w_p_rnu)))
{
long num;