summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2017-10-11 01:23:53 +0200
committerOliver Kiddle <opk@zsh.org>2017-10-11 01:23:53 +0200
commit04a7dca3b0aa7659846e66415a2021b1562492f5 (patch)
tree43e341073477569deaace6a1f3d5912748b01ea3 /Completion/Unix
parent233c0e89032950a031c7e559b4f71944d49e4664 (diff)
downloadzsh-04a7dca3b0aa7659846e66415a2021b1562492f5.tar.gz
zsh-04a7dca3b0aa7659846e66415a2021b1562492f5.tar.xz
zsh-04a7dca3b0aa7659846e66415a2021b1562492f5.zip
41831: fix compset usage in ogg123 completion and tweak where compset -p is a better choice than -P
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_less2
-rw-r--r--Completion/Unix/Command/_vorbis2
-rw-r--r--Completion/Unix/Type/_tilde_files2
3 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_less b/Completion/Unix/Command/_less
index 9092010f2..7f01952d2 100644
--- a/Completion/Unix/Command/_less
+++ b/Completion/Unix/Command/_less
@@ -91,7 +91,7 @@ _arguments -S -s -A "[-+]*"  \
 if [[ -n "$state" ]]; then
   case $state in
     prompts)
-      if compset -P \?; then
+      if compset -p 1; then
 	_message -e prompt
       else
 	_describe 'prompt' '(
diff --git a/Completion/Unix/Command/_vorbis b/Completion/Unix/Command/_vorbis
index eee4f7a5e..cb3e3f9d8 100644
--- a/Completion/Unix/Command/_vorbis
+++ b/Completion/Unix/Command/_vorbis
@@ -79,7 +79,7 @@ case $service in
 esac
 
 if [[ $state = devopts ]]; then
-  if compset -p '*:'; then
+  if compset -P '*:'; then
     _message -e value value
   else
     _wanted devopts expl 'device option' \
diff --git a/Completion/Unix/Type/_tilde_files b/Completion/Unix/Type/_tilde_files
index b1b3b37f0..0ee12332b 100644
--- a/Completion/Unix/Type/_tilde_files
+++ b/Completion/Unix/Type/_tilde_files
@@ -29,7 +29,7 @@ case "$PREFIX" in
   _files "$@" -W "$user"
   ;;
 \~*)
-  compset -P '?'
+  compset -p 1
   local -a expl=( "$@" )
   _alternative -O expl users:user:_users named-directories:'named directory':'compadd -k nameddirs'
   ;;