mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 11:21:15 -03:00
Removing some unnecessary calls to c_str(), and added str2wcstring(std::string) in common.cpp.
This commit is contained in:
@@ -561,7 +561,7 @@ int complete_is_valid_option( const wchar_t *str,
|
||||
continue;
|
||||
}
|
||||
|
||||
if( wcsncmp( &opt[2], o.long_opt.c_str(), gnu_opt_len )==0)
|
||||
if( &opt[2] == o.long_opt )
|
||||
{
|
||||
gnu_match_set.insert(o.long_opt);
|
||||
if( (wcsncmp( &opt[2],
|
||||
|
||||
Reference in New Issue
Block a user