summaryrefslogtreecommitdiff
path: root/src/completion.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-04-18 14:02:14 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-04-18 14:02:14 +0100
commitadde2fef75b12bb9ce536341b87729ab2fc610fe (patch)
tree764dc9d71114d031b6a693b7cc277dd09d6c3e7f /src/completion.cc
parentaf2d82dfc17ccd0c32b0955b1588e3bca379ccab (diff)
Use StringView for completion functions
Diffstat (limited to 'src/completion.cc')
-rw-r--r--src/completion.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/completion.cc b/src/completion.cc
index a3e99ce4..9fc3ed78 100644
--- a/src/completion.cc
+++ b/src/completion.cc
@@ -6,7 +6,7 @@ namespace Kakoune
{
Completions shell_complete(const Context& context, CompletionFlags flags,
- const String& prefix, ByteCount cursor_pos)
+ StringView prefix, ByteCount cursor_pos)
{
ByteCount word_start = 0;
ByteCount word_end = 0;