summaryrefslogtreecommitdiffstats
path: root/src/charset.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-08-05 20:25:50 +0100
committerBram Moolenaar <Bram@vim.org>2022-08-05 20:25:50 +0100
commit50e75fe8d8c8ab262ab5b11d1498e5628044e07c (patch)
tree1aa13fb898b0788ff697cde4b9d3885c796c35c1 /src/charset.c
parent4d2031fdbe833431269a960dd2f0287dbcaa92f9 (diff)
patch 9.0.0147: cursor positioned wrong after two "below" text propertiesv9.0.0147
Problem: Cursor positioned wrong after two text properties with virtual text and "below" alignment. (Tim Pope) Solution: Do not stop after a text property using MAXCOL. (closes #10849)
Diffstat (limited to 'src/charset.c')
-rw-r--r--src/charset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/charset.c b/src/charset.c
index f7ce33505d..b245bd763e 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -1173,7 +1173,7 @@ win_lbr_chartabsize(
size += cells;
}
}
- if (tp->tp_col - 1 > col)
+ if (tp->tp_col != MAXCOL && tp->tp_col - 1 > col)
break;
}
}