Display command info only when the autoinfo option is true

This commit is contained in:
Maxime Coste 2014-02-11 22:54:08 +00:00
parent 486d1269e0
commit e6f5b3c038

View File

@ -421,7 +421,7 @@ void command(Context& context, int)
if (context.has_ui())
{
context.ui().info_hide();
if (event == PromptEvent::Change)
if (event == PromptEvent::Change and context.options()["autoinfo"].get<bool>())
{
auto info = CommandManager::instance().command_info(cmdline);
ColorPair col = get_color("Information");