- std::string completion;
- if (string->size_ != 0)
- completion.assign(string->value_, string->size_);
- else if (driver.mode_ == CYDriver::AutoMessage)
+ CYUTF8String completion(string->value_, string->size_);
+ _assert(completion.size >= begin.size());
+ completion.data += begin.size();
+ completion.size -= begin.size();
+
+ if (completion.size == 0 && driver.mode_ == CYDriver::AutoMessage)