From 79fe4ae3e3965e8d55e259b392f6357f1da88526 Mon Sep 17 00:00:00 2001 From: Mikko Date: Tue, 15 Apr 2025 22:02:41 +0300 Subject: [PATCH] fix cycling through completion suggestions ending in non-word character (#3650) --- internal/action/actions.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/internal/action/actions.go b/internal/action/actions.go index f2449121..a27de68a 100644 --- a/internal/action/actions.go +++ b/internal/action/actions.go @@ -911,6 +911,11 @@ func (h *BufPane) Autocomplete() bool { return false } + if b.HasSuggestions { + b.CycleAutocomplete(true) + return true + } + if h.Cursor.X == 0 { return false } @@ -921,10 +926,6 @@ func (h *BufPane) Autocomplete() bool { return false } - if b.HasSuggestions { - b.CycleAutocomplete(true) - return true - } return b.Autocomplete(buffer.BufferComplete) }