mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 10:26:31 +00:00
fix(multibyte): handle backspace of wide clusters in replace mode
Make utf_head_off more robust against invalid sequences and embedded NUL chars
This commit is contained in:
@@ -1407,7 +1407,7 @@ void fixthisline(IndentGetter get_the_indent)
|
||||
return;
|
||||
}
|
||||
|
||||
change_indent(INDENT_SET, amount, false, 0, true);
|
||||
change_indent(INDENT_SET, amount, false, true);
|
||||
if (linewhite(curwin->w_cursor.lnum)) {
|
||||
did_ai = true; // delete the indent if the line stays empty
|
||||
}
|
||||
|
Reference in New Issue
Block a user