forked from aniani/vim
Fix: changing case of a character removed combining characters.
This commit is contained in:
@@ -2433,7 +2433,8 @@ swapchar(op_type, pos)
|
|||||||
pos_T sp = curwin->w_cursor;
|
pos_T sp = curwin->w_cursor;
|
||||||
|
|
||||||
curwin->w_cursor = *pos;
|
curwin->w_cursor = *pos;
|
||||||
del_char(FALSE);
|
/* don't use del_char(), it also removes composing chars */
|
||||||
|
del_bytes(utf_ptr2len(ml_get_cursor()), FALSE, FALSE);
|
||||||
ins_char(nc);
|
ins_char(nc);
|
||||||
curwin->w_cursor = sp;
|
curwin->w_cursor = sp;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user