Skip to content

Commit d733db2

Browse files
committed
Add space on tab with no suggestion
1 parent c36ff55 commit d733db2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

completer.go

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ func (ic iCompleter) Do(line []rune, pos int) (newLine [][]rune, length int) {
2323
suggestions = append(suggestions, []rune(strings.TrimPrefix(w, prefix)))
2424
}
2525
}
26+
if len(suggestions) == 1 && prefix != "" && string(suggestions[0]) == "" {
27+
suggestions = [][]rune{[]rune(" ")}
28+
}
2629
return suggestions, len(prefix)
2730
}
2831

0 commit comments

Comments
 (0)