mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 18:41:12 -03:00
Fix a crash in complete -C
This commit is contained in:
@@ -1507,8 +1507,8 @@ bool completer_t::complete_variable(const wcstring &str, int start_offset)
|
||||
*/
|
||||
bool completer_t::try_complete_variable( const wcstring &str )
|
||||
{
|
||||
size_t i, len = str.size();
|
||||
for( i=len-1; i>=0; i-- )
|
||||
size_t i = str.size();
|
||||
while (i--)
|
||||
{
|
||||
wchar_t c = str.at(i);
|
||||
if( c == L'$' )
|
||||
|
||||
Reference in New Issue
Block a user