about summary refs log tree commit diff
path: root/Completion/Core/_closequotes
blob: 2c4b390e58f60e4c9ded8756cc0d46cf5ea674a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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