diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-04-18 14:02:14 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-04-18 14:02:14 +0100 |
| commit | adde2fef75b12bb9ce536341b87729ab2fc610fe (patch) | |
| tree | 764dc9d71114d031b6a693b7cc277dd09d6c3e7f /src/completion.hh | |
| parent | af2d82dfc17ccd0c32b0955b1588e3bca379ccab (diff) | |
Use StringView for completion functions
Diffstat (limited to 'src/completion.hh')
| -rw-r--r-- | src/completion.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/completion.hh b/src/completion.hh index fc58d1c4..6cda2e6c 100644 --- a/src/completion.hh +++ b/src/completion.hh @@ -5,13 +5,13 @@ #include <functional> #include "units.hh" +#include "string.hh" namespace Kakoune { class Context; -class String; using CandidateList = std::vector<String>; struct Completions @@ -36,16 +36,16 @@ enum class CompletionFlags Fast }; using Completer = std::function<Completions (const Context&, CompletionFlags, - const String&, ByteCount)>; + StringView, ByteCount)>; inline Completions complete_nothing(const Context& context, CompletionFlags, - const String&, ByteCount cursor_pos) + StringView, ByteCount cursor_pos) { return Completions(cursor_pos, cursor_pos); } Completions shell_complete(const Context& context, CompletionFlags, - const String&, ByteCount cursor_pos); + StringView, ByteCount cursor_pos); } #endif // completion_hh_INCLUDED |
