comparison 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
comparison
equal deleted inserted replaced
17142:c74374576448 17143:ee090ecd70f6
4389 if (text_props != NULL) 4389 if (text_props != NULL)
4390 { 4390 {
4391 int pi; 4391 int pi;
4392 int bcol = (int)(ptr - line); 4392 int bcol = (int)(ptr - line);
4393 4393
4394 if (n_extra > 0)
4395 --bcol; // still working on the previous char, e.g. Tab
4396
4394 // Check if any active property ends. 4397 // Check if any active property ends.
4395 for (pi = 0; pi < text_props_active; ++pi) 4398 for (pi = 0; pi < text_props_active; ++pi)
4396 { 4399 {
4397 int tpi = text_prop_idxs[pi]; 4400 int tpi = text_prop_idxs[pi];
4398 4401