mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 16:28:17 +00:00
mbyte: replace vim_tolower with mb_tolower handling locale correctly
This commit is contained in:
@@ -2731,7 +2731,7 @@ do_dialog (
|
||||
}
|
||||
|
||||
/* Make the character lowercase, as chars in "hotkeys" are. */
|
||||
c = vim_tolower(c);
|
||||
c = mb_tolower(c);
|
||||
retval = 1;
|
||||
for (i = 0; hotkeys[i]; ++i) {
|
||||
if (has_mbyte) {
|
||||
@@ -2777,7 +2777,7 @@ copy_char (
|
||||
|
||||
if (has_mbyte) {
|
||||
if (lowercase) {
|
||||
c = vim_tolower((*mb_ptr2char)(from));
|
||||
c = mb_tolower((*mb_ptr2char)(from));
|
||||
return (*mb_char2bytes)(c, to);
|
||||
} else {
|
||||
len = (*mb_ptr2len)(from);
|
||||
|
Reference in New Issue
Block a user