diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-10-05 01:25:23 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-10-05 01:25:23 +0100 |
| commit | c54e6738b911e5de86dfe94b9166df86751aacb1 (patch) | |
| tree | 0b8e87b846f49f182dc80ee6677489807978e22e /src/insert_completer.cc | |
| parent | 27606f7a75e94f6537aedcc6ce9443a53a572393 (diff) | |
Use DisplayLine for menu choices
Diffstat (limited to 'src/insert_completer.cc')
| -rw-r--r-- | src/insert_completer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/insert_completer.cc b/src/insert_completer.cc index 9ee00d14..b577c119 100644 --- a/src/insert_completer.cc +++ b/src/insert_completer.cc @@ -421,13 +421,13 @@ void InsertCompleter::menu_show() const CharCount tabstop = m_options["tabstop"].get<int>(); const CharCount column = get_column(m_context.buffer(), tabstop, m_completions.begin); - Vector<String> menu_entries; + Vector<DisplayLine> menu_entries; for (auto& candidate : m_matching_candidates) { const String& entry = candidate.menu_entry.empty() ? candidate.completion : candidate.menu_entry; - menu_entries.push_back(expand_tabs(entry, tabstop, column)); + menu_entries.push_back({ expand_tabs(entry, tabstop, column), {} }); } m_context.ui().menu_show(menu_entries, menu_pos, |
