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/insert_completer.cc | |
| parent | 484fffc288d0ce2a29ab1737b5c6122fa67dc5ac (diff) | |
Add a MenuDoc style for info box, that will place it next to the menu
Diffstat (limited to 'src/insert_completer.cc')
| -rw-r--r-- | src/insert_completer.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/insert_completer.cc b/src/insert_completer.cc index a42c4b62..2a683310 100644 --- a/src/insert_completer.cc +++ b/src/insert_completer.cc @@ -279,12 +279,8 @@ void InsertCompleter::select(int offset) { m_context.ui().menu_select(m_current_candidate); if (not candidate.second.empty()) - { - CharCoord pos = m_context.window().dimensions(); - pos.column -= 1; - m_context.ui().info_show(candidate.first, candidate.second, pos, - get_face("Information"), MenuStyle::Prompt); - } + m_context.ui().info_show(candidate.first, candidate.second, CharCoord{}, + get_face("Information"), InfoStyle::MenuDoc); } // when we select a match, remove non displayed matches from the candidates // which are considered as invalid with the new completion timestamp |
