Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _urls quote bookmark
- X-seq: zsh-workers 9317
- From: Tanaka Akira <akr@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: _urls quote bookmark
- Date: 14 Jan 2000 18:40:16 +0900
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
I rethought that bookmark should be quoted when it is completed.
Index: Completion/User/_urls
===================================================================
RCS file: /projects/zsh/zsh/Completion/User/_urls,v
retrieving revision 1.1.1.17
diff -u -r1.1.1.17 _urls
--- Completion/User/_urls 2000/01/06 14:07:49 1.1.1.17
+++ Completion/User/_urls 2000/01/14 09:37:44
@@ -88,7 +88,7 @@
if [[ -f "$urls_path/$scheme/${(Q)PREFIX}${(Q)SUFFIX}" &&
-s "$urls_path/$scheme/${(Q)PREFIX}${(Q)SUFFIX}" ]]; then
_wanted -C bookmark bookmarks expl bookmarks &&
- compadd "$expl[@]" "$@" -QU - \
+ compadd "$expl[@]" "$@" -U - \
"$ipre$(<"$urls_path/$scheme/${(Q)PREFIX}${(Q)SUFFIX}")" && ret=0
else
if _wanted -C bookmark files expl 'bookmark'; then
@@ -107,7 +107,7 @@
uhosts=($urls_path/$scheme/$PREFIX*$SUFFIX(/:t))
(( $#uhosts )) || _hosts -S/ && ret=0
[[ "$scheme" = http ]] && uhosts=($uhosts $localhttp_servername)
- compadd "$expl[@]" "$@" -QS/ - $uhosts && ret=0
+ compadd "$expl[@]" "$@" -S/ - $uhosts && ret=0
return ret
fi
host="$match[1]"
--
Tanaka Akira
Messages sorted by:
Reverse Date,
Date,
Thread,
Author