about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-09-22 11:43:17 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-09-22 21:02:45 +0000
commit7ecc3f8b4efe89ac539201ddfce087dca4ad77a9 (patch)
tree523813b0b638f0edd65abc4ffeac691f3f1b6771 /Completion/Unix
parent4e51079f0bfc2fa0085376a56f3002370d90e99a (diff)
downloadzsh-7ecc3f8b4efe89ac539201ddfce087dca4ad77a9.tar.gz
zsh-7ecc3f8b4efe89ac539201ddfce087dca4ad77a9.tar.xz
zsh-7ecc3f8b4efe89ac539201ddfce087dca4ad77a9.zip
39410: Fix unintentional history modifiers.
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_dsh2
-rw-r--r--Completion/Unix/Type/_dates4
2 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_dsh b/Completion/Unix/Command/_dsh
index 8c5c23208..fc7680062 100644
--- a/Completion/Unix/Command/_dsh
+++ b/Completion/Unix/Command/_dsh
@@ -25,7 +25,7 @@ _arguments -s -C -S \
   '*::args: _normal' && return
 
 if [[ $state = groups ]]; then
-  if ! zstyle -s ":completion:$curcontext:dsh-groups" dsh-groups grp; then
+  if ! zstyle -s ":completion:${curcontext}:dsh-groups" dsh-groups grp; then
     [[ -e ~/.dsh/group ]] && grp="~/.dsh/group" || return 1
   fi
   _path_files -W ~/.dsh/group && return
diff --git a/Completion/Unix/Type/_dates b/Completion/Unix/Type/_dates
index e4fa62e48..0af10eb24 100644
--- a/Completion/Unix/Type/_dates
+++ b/Completion/Unix/Type/_dates
@@ -22,10 +22,10 @@ local future mlabel mfmt mlabels
 
 zparseopts -D -K -E f:=format F=future
 (( future = $#future ? 1 : -1 ))
-zstyle -s ':completion:$curcontext:dates' date-format userformat
+zstyle -s ":completion:${curcontext}:dates" date-format userformat
 format=${userformat:-${format[2]:-%F}}
 
-zstyle -a ':completion:$curcontext:dates' max-matches-length r
+zstyle -a ":completion:${curcontext}:dates" max-matches-length r
 for ri in $r; do
   [[ $ri = [0-9]##% ]] && (( ri = LINES * .${ri%%%} ))
   (( ri < rows )) && (( rows=ri ))