fix(plines): cursor position with 'showbreak' and resized grid (#28067)

This commit is contained in:
zeertzjq
2024-03-28 14:12:54 +08:00
committed by GitHub
parent 981301d11f
commit a0cbf1d8d5
2 changed files with 67 additions and 13 deletions

View File

@@ -236,7 +236,7 @@ CharSize charsize_regular(CharsizeArg *csarg, char *const cur, colnr_T const vco
wcol += col_off_prev;
}
if (wcol + size > wp->w_width) {
if (wcol + size > wp->w_width_inner) {
// cells taken by 'showbreak'/'breakindent' halfway current char
int head_mid = csarg->indent_width;
if (head_mid == INT_MIN) {