diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-11-08 17:59:38 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-11-08 18:01:55 +0000 |
| commit | e1fc2677e3a01b779c689a971cd2207ef08746d7 (patch) | |
| tree | 632d806ab78dde010c73c69676b0413088304d6a /src/normal.cc | |
| parent | 484fffc288d0ce2a29ab1737b5c6122fa67dc5ac (diff) | |
Add a MenuDoc style for info box, that will place it next to the menu
Diffstat (limited to 'src/normal.cc')
| -rw-r--r-- | src/normal.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/normal.cc b/src/normal.cc index fcf28ac6..5d258e59 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -116,7 +116,7 @@ bool show_auto_info_ifn(StringView title, StringView info, Face face = get_face("Information"); CharCoord pos = context.window().dimensions(); pos.column -= 1; - context.ui().info_show(title, info, pos, face, MenuStyle::Prompt); + context.ui().info_show(title, info, pos, face, InfoStyle::Prompt); return true; } @@ -366,7 +366,7 @@ void command(Context& context, int) CharCoord pos = context.window().dimensions(); pos.column -= 1; if (not info.first.empty() and not info.second.empty()) - context.ui().info_show(info.first, info.second, pos , col, MenuStyle::Prompt); + context.ui().info_show(info.first, info.second, pos , col, InfoStyle::Prompt); } } if (event == PromptEvent::Validate) @@ -569,7 +569,7 @@ void regex_prompt(Context& context, const String prompt, T func) Face face = get_face("Information"); CharCoord pos = context.window().dimensions(); pos.column -= 1; - context.ui().info_show("regex error", err.what(), pos, face, MenuStyle::Prompt); + context.ui().info_show("regex error", err.what(), pos, face, InfoStyle::Prompt); } } } |
