aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/reader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/reader.cpp')
-rw-r--r--src/reader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reader.cpp b/src/reader.cpp
index a1027c39..d6eea53a 100644
--- a/src/reader.cpp
+++ b/src/reader.cpp
@@ -1482,10 +1482,10 @@ struct autosuggestion_context_t
return 0;
/* Try handling a special command like cd */
- wcstring special_suggestion;
+ completion_t special_suggestion(L"");
if (autosuggest_suggest_special(search_string, working_directory, &special_suggestion))
{
- this->autosuggestion = special_suggestion;
+ this->autosuggestion = special_suggestion.completion;
return 1;
}