aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-03-28 14:12:54 +0800
committerGitHub <noreply@github.com>2024-03-28 14:12:54 +0800
commita0cbf1d8d5a65190874a14cfd9105aaecc1c7568 (patch)
tree0e7d066d84252633b414c6bcba5f42a2293f847c /src
parent981301d11f83f5e9b7425cd383e59bbe0d7afdd5 (diff)
downloadrneovim-a0cbf1d8d5a65190874a14cfd9105aaecc1c7568.tar.gz
rneovim-a0cbf1d8d5a65190874a14cfd9105aaecc1c7568.tar.bz2
rneovim-a0cbf1d8d5a65190874a14cfd9105aaecc1c7568.zip
fix(plines): cursor position with 'showbreak' and resized grid (#28067)
Diffstat (limited to 'src')
-rw-r--r--src/nvim/plines.c2
1 files changed, 1 insertions, 1 deletions
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) {