Skip to content

Commit 79fe4ae

Browse files
fix cycling through completion suggestions ending in non-word character (#3650)
1 parent b88300e commit 79fe4ae

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

internal/action/actions.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,11 @@ func (h *BufPane) Autocomplete() bool {
911911
return false
912912
}
913913

914+
if b.HasSuggestions {
915+
b.CycleAutocomplete(true)
916+
return true
917+
}
918+
914919
if h.Cursor.X == 0 {
915920
return false
916921
}
@@ -921,10 +926,6 @@ func (h *BufPane) Autocomplete() bool {
921926
return false
922927
}
923928

924-
if b.HasSuggestions {
925-
b.CycleAutocomplete(true)
926-
return true
927-
}
928929
return b.Autocomplete(buffer.BufferComplete)
929930
}
930931

0 commit comments

Comments
 (0)