diff options
author | aph <a.hewson@gmail.com> | 2014-04-01 20:03:46 +0100 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-04 21:44:58 -0300 |
commit | 4c4880b69f2dc98a8f899fe394ea15a32bcf70f7 (patch) | |
tree | bbceab6f73ddf6802d740f5d3d6fabf384264739 /src/ops.c | |
parent | 535c450c72bb643aaff5e024d64980e124d6ddec (diff) | |
download | rneovim-4c4880b69f2dc98a8f899fe394ea15a32bcf70f7.tar.gz rneovim-4c4880b69f2dc98a8f899fe394ea15a32bcf70f7.tar.bz2 rneovim-4c4880b69f2dc98a8f899fe394ea15a32bcf70f7.zip |
remove MB_{IS,TO}{UPPER,LOWER}
Diffstat (limited to 'src/ops.c')
-rw-r--r-- | src/ops.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -2032,16 +2032,16 @@ int swapchar(int op_type, pos_T *pos) if (enc_dbcs != 0 && c >= 0x100) /* No lower/uppercase letter */ return FALSE; nc = c; - if (MB_ISLOWER(c)) { + if (vim_islower(c)) { if (op_type == OP_ROT13) nc = ROT13(c, 'a'); else if (op_type != OP_LOWER) - nc = MB_TOUPPER(c); - } else if (MB_ISUPPER(c)) { + nc = vim_toupper(c); + } else if (vim_isupper(c)) { if (op_type == OP_ROT13) nc = ROT13(c, 'A'); else if (op_type != OP_UPPER) - nc = MB_TOLOWER(c); + nc = vim_tolower(c); } if (nc != c) { if (enc_utf8 && (c >= 0x80 || nc >= 0x80)) { @@ -3289,7 +3289,7 @@ void ex_display(exarg_T *eap) } else yb = &(y_regs[i]); - if (name == MB_TOLOWER(redir_reg) + if (name == vim_tolower(redir_reg) || (redir_reg == '"' && yb == y_previous)) continue; /* do not list register being written to, the * pointer can be freed */ |