diff options
author | Arthur Williams <taaparthur@gmail.com> | 2021-09-05 15:30:59 -0500 |
---|---|---|
committer | Philip Langdale <github.philipl@overt.org> | 2021-09-05 16:51:38 -0700 |
commit | 6f23aa0d3ee91aec54cf46dd52509d98a41f09f2 (patch) | |
tree | 6c3aebb26eb27cee650a8863a3c8a77bd22f1ade /video/out/win_state.c | |
parent | 8aef22e45debedc107917e674072976c55c07f0d (diff) | |
download | mpv-6f23aa0d3ee91aec54cf46dd52509d98a41f09f2.tar.bz2 mpv-6f23aa0d3ee91aec54cf46dd52509d98a41f09f2.tar.xz |
bash completion: Allow completions to work without external functions
If bash_completion wasn't installed, _filedir wouldn't be defined which
led to all filename-based completions to error out. Specifically
autocompletion would fail when a filename was expected and when
bash_completion wasn't installed. Now we fall back to `compgen -f` if
_filedir fails. According to _filedir's comments, compgen doesn't
handle files with spaces well, but it is still better to complete most
files than none.
Diffstat (limited to 'video/out/win_state.c')
0 files changed, 0 insertions, 0 deletions