From: Bram Moolenaar Date: Sun, 1 Aug 2010 12:22:48 +0000 (+0200) Subject: Fix: changing case of a character removed combining characters. X-Git-Tag: v7.3~121 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d1cb65e44031e2e079463a388a10af615b2a0408;p=vim Fix: changing case of a character removed combining characters. --- diff --git a/src/ops.c b/src/ops.c index beab33c15..98bd2d171 100644 --- a/src/ops.c +++ b/src/ops.c @@ -2433,7 +2433,8 @@ swapchar(op_type, pos) pos_T sp = curwin->w_cursor; 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); curwin->w_cursor = sp; }