summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-06-19 17:34:24 +0200
committerBram Moolenaar <Bram@vim.org>2019-06-19 17:34:24 +0200
commita956bf6ca34896c3f242bf726b709a725f9053ce (patch)
tree6b986ab92a2b64bef96681ef520c4d8cdad161ac /src/screen.c
parent4dff4aed09d2b0d570ca0d19de9cb08bdf03e695 (diff)
downloadvim-git-a956bf6ca34896c3f242bf726b709a725f9053ce.tar.gz
patch 8.1.1571: textprop highlight starts too early if just after a tabv8.1.1571
Problem: textprop highlight starts too early if just after a tab. Solution: Check if still drawing a previous character. (closes #4558)
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c3
1 files changed, 3 insertions, 0 deletions
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)
{