aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2017-04-08 16:45:38 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2017-04-10 12:01:40 +0200
commitdb9ef6263ec5b7885782ccf0a93e06b0c71f6944 (patch)
treeb8be451ab6edf79c97f198be7f6dddaf004f8455 /src/nvim/ops.c
parent3b88e37b839fede81f40b5454490b6b8a89db5b7 (diff)
downloadrneovim-db9ef6263ec5b7885782ccf0a93e06b0c71f6944.tar.gz
rneovim-db9ef6263ec5b7885782ccf0a93e06b0c71f6944.tar.bz2
rneovim-db9ef6263ec5b7885782ccf0a93e06b0c71f6944.zip
mbyte: replace vim_tolower with mb_tolower handling locale correctly
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r--src/nvim/ops.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index 68ef27222c..c5b7e65983 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -1956,16 +1956,16 @@ int swapchar(int op_type, pos_T *pos)
if (enc_dbcs != 0 && c >= 0x100) /* No lower/uppercase letter */
return FALSE;
nc = c;
- if (vim_islower(c)) {
+ if (mb_islower(c)) {
if (op_type == OP_ROT13)
nc = ROT13(c, 'a');
else if (op_type != OP_LOWER)
- nc = vim_toupper(c);
- } else if (vim_isupper(c)) {
+ nc = mb_toupper(c);
+ } else if (mb_isupper(c)) {
if (op_type == OP_ROT13)
nc = ROT13(c, 'A');
else if (op_type != OP_UPPER)
- nc = vim_tolower(c);
+ nc = mb_tolower(c);
}
if (nc != c) {
if (enc_utf8 && (c >= 0x80 || nc >= 0x80)) {
@@ -3327,7 +3327,7 @@ void ex_display(exarg_T *eap)
get_clipboard(name, &yb, true);
- if (name == vim_tolower(redir_reg)
+ if (name == mb_tolower(redir_reg)
|| (redir_reg == '"' && yb == y_previous))
continue; /* do not list register being written to, the
* pointer can be freed */