comparison src/ops.c @ 2451:0b8612c2814d vim73

Fix: changing case of a character removed combining characters.
author Bram Moolenaar <bram@vim.org>
date Sun, 01 Aug 2010 14:22:48 +0200
parents 348f64c129df
children c3b5d3fe9404
comparison
equal deleted inserted replaced
2450:7e9da593951d 2451:0b8612c2814d
2431 if (enc_utf8 && (c >= 0x80 || nc >= 0x80)) 2431 if (enc_utf8 && (c >= 0x80 || nc >= 0x80))
2432 { 2432 {
2433 pos_T sp = curwin->w_cursor; 2433 pos_T sp = curwin->w_cursor;
2434 2434
2435 curwin->w_cursor = *pos; 2435 curwin->w_cursor = *pos;
2436 del_char(FALSE); 2436 /* don't use del_char(), it also removes composing chars */
2437 del_bytes(utf_ptr2len(ml_get_cursor()), FALSE, FALSE);
2437 ins_char(nc); 2438 ins_char(nc);
2438 curwin->w_cursor = sp; 2439 curwin->w_cursor = sp;
2439 } 2440 }
2440 else 2441 else
2441 #endif 2442 #endif