mirror of
https://github.com/vim/vim.git
synced 2025-10-02 05:04:20 -04:00
patch 8.1.0663: text property display wrong when 'number' is set
Problem: Text property display wrong when 'number' is set. (Dominique Pelle) Solution: Compare with "vcol" instead of "col".
This commit is contained in:
@@ -4304,7 +4304,7 @@ win_line(
|
|||||||
{
|
{
|
||||||
int tpi = text_prop_idxs[pi];
|
int tpi = text_prop_idxs[pi];
|
||||||
|
|
||||||
if (col >= text_props[tpi].tp_col - 1
|
if (vcol >= text_props[tpi].tp_col - 1
|
||||||
+ text_props[tpi].tp_len)
|
+ text_props[tpi].tp_len)
|
||||||
{
|
{
|
||||||
if (pi + 1 < text_props_active)
|
if (pi + 1 < text_props_active)
|
||||||
@@ -4319,7 +4319,7 @@ win_line(
|
|||||||
|
|
||||||
// Add any text property that starts in this column.
|
// Add any text property that starts in this column.
|
||||||
while (text_prop_next < text_prop_count
|
while (text_prop_next < text_prop_count
|
||||||
&& col >= text_props[text_prop_next].tp_col - 1)
|
&& vcol >= text_props[text_prop_next].tp_col - 1)
|
||||||
text_prop_idxs[text_props_active++] = text_prop_next++;
|
text_prop_idxs[text_props_active++] = text_prop_next++;
|
||||||
|
|
||||||
text_prop_type = NULL;
|
text_prop_type = NULL;
|
||||||
|
@@ -799,6 +799,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
663,
|
||||||
/**/
|
/**/
|
||||||
662,
|
662,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user