diff src/drawline.c @ 30359:6391b3ca26b7 v9.0.0515

patch 9.0.0515: virtual text highlight starts too early when 'number' is set Commit: https://github.com/vim/vim/commit/2fdc9b541918237168ca05ac09eb4bb245e5c6c5 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 20 15:59:22 2022 +0100 patch 9.0.0515: virtual text highlight starts too early when 'number' is set Problem: Virtual text highlight starts too early when 'number' is set. Solution: Set column offset when wrapping. (issue https://github.com/vim/vim/issues/11138)
author Bram Moolenaar <Bram@vim.org>
date Tue, 20 Sep 2022 17:00:05 +0200
parents 5f112a0b4da1
children d03040b399de
line wrap: on
line diff
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -376,6 +376,9 @@ text_prop_position(
 		else
 		    before = 0;
 	    }
+	    else if (below && before > 0)
+		// include 'number' column et al.
+		col_off = win_col_off(wp) + win_col_off2(wp);
 	}
 
 	// With 'nowrap' add one to show the "extends" character if needed (it