on master help sign in
Clear competion items when start_offset > cursor (#906)
commitf331ba9df4d7d22a5e9599737da581feb630f748 authorCossonLeo <20379044+cossonleo@users.noreply.github.com> dateTue 26 Oct 2021, 08:42 (5 years ago) parentb142fd4
1 file changed+1−1
helix-term/src/ui/completion.rs+1−1
helix-term/src/ui/completion.rs+1−1
@@ -199,7 +199,7 @@ impl Completion {
199199 .selection(view.id)
200200 .primary()
201201 .cursor(doc.text().slice(..));
202− if self.start_offset <= cursor {
202+ if self.trigger_offset <= cursor {
203203 let fragment = doc.text().slice(self.start_offset..cursor);
204204 let text = Cow::from(fragment);
205205 // TODO: logic is same as ui/picker