diff options
Diffstat (limited to 'src/reader.cpp')
-rw-r--r-- | src/reader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reader.cpp b/src/reader.cpp index 7aae5f6f..2b0874d7 100644 --- a/src/reader.cpp +++ b/src/reader.cpp @@ -1907,7 +1907,7 @@ static bool handle_completions(const std::vector<completion_t> &comp, bool conti assert(el->position >= prefix_start); len = el->position - prefix_start; - if (match_type_requires_full_replacement(best_match_type)) + if (will_replace_token || match_type_requires_full_replacement(best_match_type)) { // No prefix prefix.clear(); |