1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-24 07:53:41 +03:00

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()) if (context.has_ui())
{ {
context.ui().info_hide(); 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); auto info = CommandManager::instance().command_info(cmdline);
ColorPair col = get_color("Information"); ColorPair col = get_color("Information");