From a956bf6ca34896c3f242bf726b709a725f9053ce Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 19 Jun 2019 17:34:24 +0200 Subject: 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 #4558) --- src/screen.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/screen.c') diff --git a/src/screen.c b/src/screen.c index 05639c30b..d2227a888 100644 --- 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) { -- cgit v1.2.1