summaryrefslogtreecommitdiffstats
path: root/src/drawline.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-05-02 20:52:59 +0100
committerBram Moolenaar <Bram@vim.org>2023-05-02 20:52:59 +0100
commit88bb3e0a48f160134bdea98cd2b8bd3af86f9d6f (patch)
tree1c2a6ee4363988a43c2e86353cb71e47baa2b68e /src/drawline.c
parenta93d9cdc74f70ca2c85781496ffae4ca738fcd88 (diff)
patch 9.0.1506: line number not displayed when using 'smoothscroll'v9.0.1506
Problem: Line number not displayed when using 'smoothscroll'. Solution: Adjust condition for showing the line number. (closes #12333)
Diffstat (limited to 'src/drawline.c')
-rw-r--r--src/drawline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drawline.c b/src/drawline.c
index f3d70ed833..e5fa15cbed 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -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;