mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-23 23:34:12 +03:00
Display command info only when the autoinfo option is true
This commit is contained in:
parent
486d1269e0
commit
e6f5b3c038
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user