diff src/screen.c @ 17143:ee090ecd70f6 v8.1.1571

patch 8.1.1571: textprop highlight starts too early if just after a tab commit https://github.com/vim/vim/commit/a956bf6ca34896c3f242bf726b709a725f9053ce Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 19 17:34:24 2019 +0200 patch 8.1.1571: textprop highlight starts too early if just after a tab Problem: textprop highlight starts too early if just after a tab. Solution: Check if still drawing a previous character. (closes https://github.com/vim/vim/issues/4558)
author Bram Moolenaar <Bram@vim.org>
date Wed, 19 Jun 2019 17:45:06 +0200
parents 3c0efdd95f8d
children 26941c50baf3
line wrap: on
line diff
--- a/src/screen.c
+++ b/src/screen.c
@@ -4391,6 +4391,9 @@ win_line(
 		int pi;
 		int bcol = (int)(ptr - line);
 
+		if (n_extra > 0)
+		    --bcol;  // still working on the previous char, e.g. Tab
+
 		// Check if any active property ends.
 		for (pi = 0; pi < text_props_active; ++pi)
 		{