mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-11 14:45:31 +03:00
completion: match exe on basename alone
This commit is contained in:
parent
16e7ca3a95
commit
5d0dabe51c
@ -571,6 +571,7 @@ func (self *Command) GetCompletions(argv []string, init_completions func(*Comple
|
|||||||
}
|
}
|
||||||
if len(argv) > 0 {
|
if len(argv) > 0 {
|
||||||
exe := argv[0]
|
exe := argv[0]
|
||||||
|
exe = filepath.Base(exe) // zsh completion script passes full path to exe when using aliases
|
||||||
cmd := self.FindSubCommand(exe)
|
cmd := self.FindSubCommand(exe)
|
||||||
if cmd != nil {
|
if cmd != nil {
|
||||||
if cmd.ParseArgsForCompletion != nil {
|
if cmd.ParseArgsForCompletion != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user