mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Oops, had the wrong sense for when to call proc_push_interactive
This commit is contained in:
parent
0e4f2cca01
commit
90826e4031
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
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 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);
|
proc_push_interactive(0);
|
||||||
|
|
||||||
parser.eval_args( args.c_str(), possible_comp );
|
parser.eval_args( args.c_str(), possible_comp );
|
||||||
|
|
||||||
if (is_autosuggest)
|
if (! is_autosuggest)
|
||||||
proc_pop_interactive();
|
proc_pop_interactive();
|
||||||
|
|
||||||
complete_strings( this->completions, str.c_str(), desc.c_str(), 0, possible_comp, flags );
|
complete_strings( this->completions, str.c_str(), desc.c_str(), 0, possible_comp, flags );
|
||||||
|
|
Loading…
Reference in a new issue