mirror of https://github.com/helix-editor/helix
Clear competion items when start_offset > cursor (#906)
parent
b142fd4080
commit
f331ba9df4
|
@ -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…
Reference in New Issue