mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 01:41:12 -03:00
Teach case-insensitive completions about tildes. Fixes https://github.com/fish-shell/fish-shell/issues/647
This commit is contained in:
10
common.cpp
10
common.cpp
@@ -554,12 +554,8 @@ wchar_t *quote_end(const wchar_t *pos)
|
||||
wcstring wsetlocale(int category, const wchar_t *locale)
|
||||
{
|
||||
|
||||
char *lang = NULL;
|
||||
if (locale)
|
||||
{
|
||||
lang = wcs2str(locale);
|
||||
}
|
||||
char * res = setlocale(category,lang);
|
||||
char *lang = locale ? wcs2str(locale) : NULL;
|
||||
char *res = setlocale(category, lang);
|
||||
free(lang);
|
||||
|
||||
/*
|
||||
@@ -572,7 +568,7 @@ wcstring wsetlocale(int category, const wchar_t *locale)
|
||||
|
||||
// U+23CE is the "return" character
|
||||
omitted_newline_char = unicode ? L'\x23CE' : L'~';
|
||||
|
||||
|
||||
if (!res)
|
||||
return wcstring();
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user