diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-12-23 13:54:09 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-12-23 13:54:09 +0000 |
| commit | b6ff15aa757eb35fed5772d28e3c06b5e844a49e (patch) | |
| tree | d41ebca1b4fe4591017f5310749b263047ba9345 /src/function_registry.hh | |
| parent | 064fb81b8d38df3bc77e2211fb6bc5db84fedb97 (diff) | |
Unify completion from container content logic
Diffstat (limited to 'src/function_registry.hh')
| -rw-r--r-- | src/function_registry.hh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/function_registry.hh b/src/function_registry.hh index 5f3732ba..cf0ea46e 100644 --- a/src/function_registry.hh +++ b/src/function_registry.hh @@ -5,6 +5,7 @@ #include "id_map.hh" #include "string.hh" #include "exception.hh" +#include "containers.hh" namespace Kakoune { @@ -35,7 +36,8 @@ public: CandidateList complete_name(StringView prefix, ByteCount cursor_pos) { - return m_functions.complete_id(prefix, cursor_pos); + auto c = transformed(m_functions, id_map<FunctionType>::get_id); + return complete(prefix, cursor_pos, c); } private: |
