From d5d91272202d1b933a760b866dd596e76854d6cb Mon Sep 17 00:00:00 2001 From: Andriamanitra Date: Sun, 2 Feb 2025 15:31:45 +0200 Subject: [PATCH] fix cycling through completion suggestions ending in non-word character --- 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 84a5060bf9..87e0844397 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) }