From 5070e79545deebd122b7929678ae63d1b2292fca Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Tue, 27 Apr 1999 17:37:07 +0000 Subject: zsh-workers:6118 --- Completion/Core/_closequotes | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Completion/Core/_closequotes 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 -- cgit 1.4.1