diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-11-07 13:54:43 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-11-07 13:54:43 +0000 |
| commit | 484fffc288d0ce2a29ab1737b5c6122fa67dc5ac (patch) | |
| tree | 58417c9c38e1f9b0e577332bd75ec4459ebd117c /src/insert_completer.hh | |
| parent | fc66c7f92f5ff77c675fc5f9ec9ad9f95f42d414 (diff) | |
Initial support for insert completion docstring
Diffstat (limited to 'src/insert_completer.hh')
| -rw-r--r-- | src/insert_completer.hh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/insert_completer.hh b/src/insert_completer.hh index 57d95a3f..75cadcfd 100644 --- a/src/insert_completer.hh +++ b/src/insert_completer.hh @@ -39,11 +39,14 @@ using InsertCompleterDescList = std::vector<InsertCompleterDesc>; String option_to_string(const InsertCompleterDesc& opt); void option_from_string(StringView str, InsertCompleterDesc& opt); +using ComplAndDesc = std::pair<String, String>; +using ComplAndDescList = std::vector<ComplAndDesc>; + struct InsertCompletion { ByteCoord begin; ByteCoord end; - CandidateList candidates; + ComplAndDescList candidates; size_t timestamp; bool is_valid() const { return not candidates.empty(); } @@ -77,7 +80,7 @@ private: const Context& m_context; OptionManager& m_options; InsertCompletion m_completions; - CandidateList m_matching_candidates; + ComplAndDescList m_matching_candidates; int m_current_candidate = -1; }; |
