1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-18 00:51:07 +02:00

16972: complete for aaaa, zone, mx, soa, txt.

This commit is contained in:
Clint Adams 2002-04-12 23:24:21 +00:00
parent 0382f720c4
commit 68615c0100
3 changed files with 20 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2002-04-12 Clint Adams <clint@zsh.org>
* 16972: Completion/Unix/Type/_hosts: complete for aaaa, zone, mx,
soa, txt.
2002-04-09 Peter Stephenson <pws@csr.com>
* 16942: Src/glob.c: Allow zero-length matches in parameter

View file

@ -0,0 +1,13 @@
#compdef ftp ping rwho rup xping traceroute host aaaa zone mx ns soa txt
local expl hosts
if ! zstyle -a ":completion:${curcontext}:hosts" hosts hosts; then
(( $+_cache_hosts )) ||
: ${(A)_cache_hosts:=${(s: :)${(ps:\t:)${${(f)~~"$(</etc/hosts)"}%%\#*}##[:blank:]#[^[:blank:]]#}}}
hosts=( "$_cache_hosts[@]" )
fi
_wanted hosts expl host \
compadd -M 'm:{a-zA-Z}={A-Za-z} r:|.=* r:|=*' "$@" -a hosts

View file

@ -373,7 +373,7 @@ zrefresh(void)
if (termflags & TERM_SHORT) {
singlerefresh();
goto singlelineout;
return;
}
if (cs < 0) {
@ -620,7 +620,6 @@ individually */
onumscrolls = numscrolls;
if (nlnct > vmaxln)
vmaxln = nlnct;
singlelineout:
fflush(shout); /* make sure everything is written out */
/* if we have a new list showing, note it; if part of the list has been
@ -1161,6 +1160,7 @@ singlerefresh(void)
qbuf = nbuf;
nbuf = obuf;
obuf = qbuf;
fflush(shout); /* make sure everything is written out */
}
/**/