Show local executables for kityt command completion even without ./

This commit is contained in:
Kovid Goyal
2022-09-19 19:47:18 +05:30
parent 454c2e32e7
commit 7cf9b21fc0
2 changed files with 3 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ func complete_kitty(completions *Completions, word string, arg_num int) {
}
}
if len(word) > 0 && (filepath.IsAbs(word) || strings.HasPrefix(word, "./") || strings.HasPrefix(word, "~")) {
if len(word) > 0 {
mg := completions.add_match_group("Executables")
mg.IsFiles = true