diff options
author | Philip Sequeira <phsequei@gmail.com> | 2019-12-14 13:38:45 -0500 |
---|---|---|
committer | wm4 <1387750+wm4@users.noreply.github.com> | 2019-12-15 14:17:00 +0100 |
commit | 0198bc13a176973e6b3efa989b8ad318251b8308 (patch) | |
tree | 6836462f1b4dc0a882b9198aa42941618e2c1c54 /player/misc.c | |
parent | a921c0628ecaa38a40b06280ef89be3e1f64d457 (diff) | |
download | mpv-0198bc13a176973e6b3efa989b8ad318251b8308.tar.bz2 mpv-0198bc13a176973e6b3efa989b8ad318251b8308.tar.xz |
zsh completion: use actual POSIX-compatible regex for whitespace
\s and \S aren't actually part of the spec, but it seems glibc supports
them anyway so I didn't notice when originally testing. This fixes the
script on Apple's libc and probably others that adhere more closely to
the spec.
The most direct replacement for \s would have been [[:space:]], but we
only expect to see spaces and tabs, so might as well just do that. Also
could have used [[:blank:]], which is basically a locale-aware version
of [ \t], but mpv isn't going to output anything but ASCII spaces and
tabs, so let's avoid unnecessary complexity and stick with the ASCII
literals.
Diffstat (limited to 'player/misc.c')
0 files changed, 0 insertions, 0 deletions