0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

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)
This commit is contained in:
Bram Moolenaar
2019-06-19 17:34:24 +02:00
parent 4dff4aed09
commit a956bf6ca3
4 changed files with 31 additions and 0 deletions

View File

@@ -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)
{