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