diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-08-01 14:22:48 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-08-01 14:22:48 +0200 |
commit | d1cb65e44031e2e079463a388a10af615b2a0408 (patch) | |
tree | 446aed31dad8544456a3c5673a58cfac92a19b41 | |
parent | a621a038392cd249c179c987bbc33f59f2b91dfe (diff) | |
download | vim-d1cb65e44031e2e079463a388a10af615b2a0408.zip |
Fix: changing case of a character removed combining characters.
-rw-r--r-- | src/ops.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |