mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-26 03:35:17 +00: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:
parent
0ab9cf8054
commit
b2abd963f0
1 changed files with 2 additions and 2 deletions
|
@ -771,8 +771,8 @@ static bool autosuggest_parse_command(const wcstring &str, wcstring *out_command
|
||||||
case TOK_END:
|
case TOK_END:
|
||||||
{
|
{
|
||||||
had_cmd = false;
|
had_cmd = false;
|
||||||
cmd.empty();
|
cmd.clear();
|
||||||
args.empty();
|
args.clear();
|
||||||
arg_pos = -1;
|
arg_pos = -1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue