mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 16:21:15 -03:00
Fix an exception when parsing a multi-line command that ends in cd
https://github.com/fish-shell/fish-shell/issues/511
This commit is contained in:
@@ -771,8 +771,8 @@ static bool autosuggest_parse_command(const wcstring &str, wcstring *out_command
|
||||
case TOK_END:
|
||||
{
|
||||
had_cmd = false;
|
||||
cmd.empty();
|
||||
args.empty();
|
||||
cmd.clear();
|
||||
args.clear();
|
||||
arg_pos = -1;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user