about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-04-27 17:37:07 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-04-27 17:37:07 +0000
commit5070e79545deebd122b7929678ae63d1b2292fca (patch)
tree03608f8e8e40d33088ef59571446e14ecc9fc974
parent443c0f7f056f7d0d7a655af62dd9c70c7767a702 (diff)
downloadzsh-3.1.5-pws-16-w6119.tar.gz
zsh-3.1.5-pws-16-w6119.tar.xz
zsh-3.1.5-pws-16-w6119.zip
zsh-workers:6118 zsh-3.1.5-pws-16-w6119
-rw-r--r--Completion/Core/_closequotes11
1 files changed, 11 insertions, 0 deletions
diff --git a/Completion/Core/_closequotes b/Completion/Core/_closequotes
new file mode 100644
index 000000000..2c4b390e5
--- /dev/null
+++ b/Completion/Core/_closequotes
@@ -0,0 +1,11 @@
+#autoload
+
+# If the current completion is in quotes, add the closing quote.
+# This can clash with some of the more sophisticated forms of completion
+
+if [[ -n $compstate[quote] && $RBUFFER != *${compstate[quote]}* ]]; then
+  compstate[restore]=''
+  ISUFFIX="$ISUFFIX$compstate[quote]"
+fi
+
+return 1