Correction of mpv autocompletion

This commit is contained in:
Benjamin VAUDOUR 2021-12-30 08:22:12 +00:00
parent 6dc895ccfb
commit 660b2029fd
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ fn complete {|@argv|
var c = (count $argv)
if (== $c 2) {
put --speed
-files $argv[-1]
file:complete $argv[-1] $@extensions
} elif (== $c 3) {
if (eq $argv[-2] --speed) {
put 0.8 0.9 1.0 1.1 1.2
@ -46,7 +46,7 @@ fn complete {|@argv|
file:complete $argv[-1] $@extensions
}
} else {
-files $argv[-1]
file:complete $argv[-1] $@extensions
}
}