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:
ridiculousfish 2013-01-11 12:57:52 -08:00
parent 0ab9cf8054
commit b2abd963f0

View file

@ -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;
}