diff options
| author | Maxime Coste <mawww@kakoune.org> | 2022-12-15 13:29:45 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2022-12-15 13:29:45 +1100 |
| commit | 20278ed52b175de20b57090f3087a23060a39e24 (patch) | |
| tree | 11e6b67f3794d6c2845cc7b9044c9594ac4e68f9 /src/command_manager.cc | |
| parent | 8279a3776f38c875ef58da7823f56fb5ef3407bb (diff) | |
Support adding ByteCount to void/char pointers without casting
Diffstat (limited to 'src/command_manager.cc')
| -rw-r--r-- | src/command_manager.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command_manager.cc b/src/command_manager.cc index 5e2253bd..ff7a143b 100644 --- a/src/command_manager.cc +++ b/src/command_manager.cc @@ -719,7 +719,7 @@ Completions CommandManager::complete(const Context& context, { auto prefix = command_line.substr(0_byte, cursor_pos); CommandParser parser{prefix}; - const char* cursor = prefix.begin() + (int)cursor_pos; + const char* cursor = prefix.begin() + cursor_pos; Vector<Token> tokens; bool is_last_token = true; |
