diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-05 14:39:08 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-05 14:39:08 -0700 |
commit | 90826e403121c7d878ba1ce4aa172ac5e96afeb5 (patch) | |
tree | fa88c519d769b234e0da8c4108a9196ebd2f7327 /complete.cpp | |
parent | 0e4f2cca01ea911e9b6efabe1b2ae4d3eb1d0ec0 (diff) |
Oops, had the wrong sense for when to call proc_push_interactive
Diffstat (limited to 'complete.cpp')
-rw-r--r-- | complete.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/complete.cpp b/complete.cpp index 06da23d8..be06ab31 100644 --- a/complete.cpp +++ b/complete.cpp @@ -1166,12 +1166,12 @@ void completer_t::complete_from_args( const wcstring &str, parser_t parser(is_autosuggest ? PARSER_TYPE_COMPLETIONS_ONLY : PARSER_TYPE_GENERAL); /* If type is COMPLETE_AUTOSUGGEST, it means we're on a background thread, so don't call proc_push_interactive */ - if (is_autosuggest) + if (! is_autosuggest) proc_push_interactive(0); parser.eval_args( args.c_str(), possible_comp ); - if (is_autosuggest) + if (! is_autosuggest) proc_pop_interactive(); complete_strings( this->completions, str.c_str(), desc.c_str(), 0, possible_comp, flags ); |