Clear competion items when start_offset > cursor (#906)

pull/912/head
CossonLeo 3 years ago committed by GitHub
parent b142fd4080
commit f331ba9df4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -199,7 +199,7 @@ impl Completion {
.selection(view.id)
.primary()
.cursor(doc.text().slice(..));
if self.start_offset <= cursor {
if self.trigger_offset <= cursor {
let fragment = doc.text().slice(self.start_offset..cursor);
let text = Cow::from(fragment);
// TODO: logic is same as ui/picker

Loading…
Cancel
Save