diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Unix/Type/_hosts | 13 | ||||
-rw-r--r-- | Src/Zle/zle_refresh.c | 4 |
3 files changed, 20 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index 394d64f6b..fd677c9f8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/Completion/Unix/Type/_hosts b/Completion/Unix/Type/_hosts new file mode 100644 index 000000000..a058b28da --- /dev/null +++ b/Completion/Unix/Type/_hosts @@ -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 diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c index 5908b9d33..c432907d1 100644 --- a/Src/Zle/zle_refresh.c +++ b/Src/Zle/zle_refresh.c @@ -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 */ } /**/ |