aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-09-04 12:09:42 +0200
committerbfredl <bjorn.linse@gmail.com>2024-09-06 10:22:29 +0200
commitfa99afe35eb5d8cf01d875e12b53165bf1104a60 (patch)
tree2a304fcd0262e71ef64d2bbb91fcbdc5eb89507d /src/nvim/ops.c
parent7b7c95dac97d6ea4f10855cc198dce650a796c20 (diff)
downloadrneovim-fa99afe35eb5d8cf01d875e12b53165bf1104a60.tar.gz
rneovim-fa99afe35eb5d8cf01d875e12b53165bf1104a60.tar.bz2
rneovim-fa99afe35eb5d8cf01d875e12b53165bf1104a60.zip
fix(multibyte): handle backspace of wide clusters in replace mode
Make utf_head_off more robust against invalid sequences and embedded NUL chars
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r--src/nvim/ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index 4b3f69a378..8faf0a6b47 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -306,7 +306,7 @@ void shift_line(bool left, bool round, int amount, int call_changed_bytes)
// Set new indent
if (State & VREPLACE_FLAG) {
- change_indent(INDENT_SET, count, false, NUL, call_changed_bytes);
+ change_indent(INDENT_SET, count, false, call_changed_bytes);
} else {
set_indent(count, call_changed_bytes ? SIN_CHANGED : 0);
}