Do not disable autoinfo and autoshowcompl in non interactive context

Fixes #1303
Fixes #1152
This commit is contained in:
Maxime Coste 2017-04-03 18:16:32 +01:00
parent f31e898f13
commit 6ad2f721dd

View File

@ -1547,8 +1547,6 @@ void context_wrap(const ParametersParser& parser, Context& context, Func func)
// Disable these options to avoid costly code paths (and potential screen // Disable these options to avoid costly code paths (and potential screen
// redraws) That are useful only in interactive contexts. // redraws) That are useful only in interactive contexts.
DisableOption<AutoInfo> disable_autoinfo(context, "autoinfo");
DisableOption<bool> disable_autoshowcompl(context, "autoshowcompl");
DisableOption<bool> disable_incsearch(context, "incsearch"); DisableOption<bool> disable_incsearch(context, "incsearch");
const bool no_hooks = parser.get_switch("no-hooks") or context.hooks_disabled(); const bool no_hooks = parser.get_switch("no-hooks") or context.hooks_disabled();