mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
mbyte: replace vim_tolower with mb_tolower handling locale correctly
This commit is contained in:
@@ -1231,7 +1231,7 @@ static int command_line_handle_key(CommandLineState *s)
|
||||
// command line has no uppercase characters, convert
|
||||
// the character to lowercase
|
||||
if (p_ic && p_scs && !pat_has_uppercase(ccline.cmdbuff)) {
|
||||
s->c = vim_tolower(s->c);
|
||||
s->c = mb_tolower(s->c);
|
||||
}
|
||||
|
||||
if (s->c != NUL) {
|
||||
@@ -3018,7 +3018,7 @@ ExpandOne (
|
||||
|| xp->xp_context == EXPAND_FILES
|
||||
|| xp->xp_context == EXPAND_SHELLCMD
|
||||
|| xp->xp_context == EXPAND_BUFFERS)) {
|
||||
if (vim_tolower(c0) != vim_tolower(ci)) {
|
||||
if (mb_tolower(c0) != mb_tolower(ci)) {
|
||||
break;
|
||||
}
|
||||
} else if (c0 != ci) {
|
||||
|
Reference in New Issue
Block a user