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) }