diff src/drawline.c @ 32349:8323e235ff44 v9.0.1506

patch 9.0.1506: line number not displayed when using 'smoothscroll' Commit: https://github.com/vim/vim/commit/88bb3e0a48f160134bdea98cd2b8bd3af86f9d6f Author: zeertzjq <zeertzjq@outlook.com> Date: Tue May 2 20:52:59 2023 +0100 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 https://github.com/vim/vim/issues/12333)
author Bram Moolenaar <Bram@vim.org>
date Tue, 02 May 2023 22:00:04 +0200
parents 15352bf5c33e
children 0632606a2530
line wrap: on
line diff
--- 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;