mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 22:38:16 +00:00
Remove has_mbytes local to lines changed in parent commit
This commit is contained in:
@@ -1737,13 +1737,8 @@ int op_replace(oparg_T *oap, int c)
|
||||
if (had_ctrl_v_cr || (c != '\r' && c != '\n')) {
|
||||
// strlen(newp) at this point
|
||||
int newp_len = bd.textcol + bd.startspaces;
|
||||
if (has_mbyte) {
|
||||
while (--num_chars >= 0) {
|
||||
newp_len += utf_char2bytes(c, newp + newp_len);
|
||||
}
|
||||
} else {
|
||||
memset(newp + newp_len, c, (size_t)numc);
|
||||
newp_len += numc;
|
||||
while (--num_chars >= 0) {
|
||||
newp_len += utf_char2bytes(c, newp + newp_len);
|
||||
}
|
||||
if (!bd.is_short) {
|
||||
// insert post-spaces
|
||||
|
Reference in New Issue
Block a user