From b2abd963f00a1921e0ac8ce3191e9b0778ce4946 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Fri, 11 Jan 2013 12:57:52 -0800 Subject: [PATCH] Fix an exception when parsing a multi-line command that ends in cd https://github.com/fish-shell/fish-shell/issues/511 --- highlight.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/highlight.cpp b/highlight.cpp index 1513185f4..452aa2def 100644 --- a/highlight.cpp +++ b/highlight.cpp @@ -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; }