about summary refs log tree commit diff
path: root/Completion/Zsh
diff options
context:
space:
mode:
authorPeter Stephenson <p.stephenson@samsung.com>2021-01-27 11:16:55 +0000
committerPeter Stephenson <p.stephenson@samsung.com>2021-01-27 11:16:55 +0000
commit8f42ecd8eecd848ac5a1efdff9d7db15cc89422f (patch)
tree386736f932817fb409db2c36f8c61c52c6549f62 /Completion/Zsh
parent5d14b6eb71b51911a1083b1c5882f3b3307e9d1b (diff)
downloadzsh-8f42ecd8eecd848ac5a1efdff9d7db15cc89422f.tar.gz
zsh-8f42ecd8eecd848ac5a1efdff9d7db15cc89422f.tar.xz
zsh-8f42ecd8eecd848ac5a1efdff9d7db15cc89422f.zip
47873: Improve completion within dynamic directory names
Diffstat (limited to 'Completion/Zsh')
-rw-r--r--Completion/Zsh/Context/_subscript4
1 files changed, 3 insertions, 1 deletions
diff --git a/Completion/Zsh/Context/_subscript b/Completion/Zsh/Context/_subscript
index 0c9a89ad5..0d9632864 100644
--- a/Completion/Zsh/Context/_subscript
+++ b/Completion/Zsh/Context/_subscript
@@ -1,6 +1,8 @@
 #compdef -subscript-
 
-local expl ind osuf=']' flags sep
+local expl ind osuf flags sep
+
+[[ $ISUFFIX = *\]* ]] || osuf=\]
 
 if [[ "$1" = -q ]]; then
   compquote osuf