From a0cbf1d8d5a65190874a14cfd9105aaecc1c7568 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 28 Mar 2024 14:12:54 +0800 Subject: fix(plines): cursor position with 'showbreak' and resized grid (#28067) --- src/nvim/plines.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/plines.c b/src/nvim/plines.c index 1d5b043907..dae9de48c6 100644 --- a/src/nvim/plines.c +++ b/src/nvim/plines.c @@ -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) { -- cgit