mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 00:01:15 -03:00
Fixed reader.cpp to not show garbage while showing help on auto completing (on pressin tab) for executables like "ls -"
This commit is contained in:
@@ -166,7 +166,7 @@ wchar_t **completions_to_char_arr( std::vector<completion_t> &l )
|
||||
}
|
||||
for( i=0; i< l.size(); i++ )
|
||||
{
|
||||
res[i] = (wchar_t *)l.at(i).completion.c_str();
|
||||
res[i] = const_cast<wchar_t*>(l.at(i).completion.c_str());
|
||||
}
|
||||
res[i]='\0';
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user