aboutsummaryrefslogtreecommitdiffhomepage
path: root/complete.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'complete.cpp')
-rw-r--r--complete.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/complete.cpp b/complete.cpp
index ea83af2b..fd51b226 100644
--- a/complete.cpp
+++ b/complete.cpp
@@ -1163,8 +1163,7 @@ void completer_t::complete_from_args( const wcstring &str,
std::vector<completion_t> possible_comp;
bool is_autosuggest = (this->type == COMPLETE_AUTOSUGGEST);
- bool show_errors = ! is_autosuggest;
- parser_t parser(PARSER_TYPE_COMPLETIONS_ONLY, show_errors);
+ parser_t parser(is_autosuggest ? PARSER_TYPE_COMPLETIONS_ONLY : PARSER_TYPE_GENERAL, false);
/* If type is COMPLETE_AUTOSUGGEST, it means we're on a background thread, so don't call proc_push_interactive */
if (! is_autosuggest)