diff options
Diffstat (limited to 'src/completion.cc')
| -rw-r--r-- | src/completion.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/completion.cc b/src/completion.cc index 5db7ffb7..da5e1387 100644 --- a/src/completion.cc +++ b/src/completion.cc @@ -12,15 +12,15 @@ namespace Kakoune CandidateList complete_filename(const Context& context, const String& prefix, - CharCount cursor_pos) + ByteCount cursor_pos) { String real_prefix = parse_filename(prefix.substr(0, cursor_pos)); String dirname = "./"; String dirprefix; String fileprefix = real_prefix; - CharCount dir_end = -1; - for (CharCount i = 0; i < real_prefix.length(); ++i) + ByteCount dir_end = -1; + for (ByteCount i = 0; i < real_prefix.length(); ++i) { if (real_prefix[i] == '/') dir_end = i; |
