There should be no trailing space when completing directories for a file match based on patterns

This commit is contained in:
Kovid Goyal
2022-11-21 11:05:36 +05:30
parent 3c0667afd6
commit 4fc91dcc03
2 changed files with 18 additions and 2 deletions

View File

@@ -132,7 +132,7 @@ func (self *Completions) AddMatchGroup(title string) *MatchGroup {
return &ans
}
type CompletionFunc func(completions *Completions, word string, arg_num int)
type CompletionFunc = func(completions *Completions, word string, arg_num int)
func NamesCompleter(title string, names ...string) CompletionFunc {
return func(completions *Completions, word string, arg_num int) {