From 660b2029fd4dfb43b18977d9c48fa99c6a5b8483 Mon Sep 17 00:00:00 2001 From: Benjamin VAUDOUR <60374-benjamin.vaudour@users.noreply.framagit.org> Date: Thu, 30 Dec 2021 08:22:12 +0000 Subject: [PATCH] Correction of mpv autocompletion --- completion/mpv.elv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/completion/mpv.elv b/completion/mpv.elv index 1758337..20a2c78 100644 --- a/completion/mpv.elv +++ b/completion/mpv.elv @@ -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 } }