aboutsummaryrefslogtreecommitdiffhomepage
path: root/complete.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-05-06 13:36:51 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-05-06 13:36:51 -0700
commit71a8d39372936ef52da45cb368eb314ec120b2c6 (patch)
treebd02abd8160ada9695c9213a1bdcea45343123a8 /complete.cpp
parent90826e403121c7d878ba1ce4aa172ac5e96afeb5 (diff)
Fix to restore completions that use command substitution (like cd)
Fix to adopt the same escaping code for both completions and autosuggestions
Diffstat (limited to 'complete.cpp')
-rw-r--r--complete.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/complete.cpp b/complete.cpp
index be06ab31..ea83af2b 100644
--- a/complete.cpp
+++ b/complete.cpp
@@ -1163,7 +1163,8 @@ void completer_t::complete_from_args( const wcstring &str,
std::vector<completion_t> possible_comp;
bool is_autosuggest = (this->type == COMPLETE_AUTOSUGGEST);
- parser_t parser(is_autosuggest ? PARSER_TYPE_COMPLETIONS_ONLY : PARSER_TYPE_GENERAL);
+ bool show_errors = ! is_autosuggest;
+ parser_t parser(PARSER_TYPE_COMPLETIONS_ONLY, show_errors);
/* If type is COMPLETE_AUTOSUGGEST, it means we're on a background thread, so don't call proc_push_interactive */
if (! is_autosuggest)