mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-10-03 01:11:37 +02:00
12728: man -l / --local-file completes _files
This commit is contained in:
parent
f1135dfd5f
commit
6dd5fc9cef
@ -1,3 +1,8 @@
|
||||
2000-09-03 Clint Adams <schizo@debian.org>
|
||||
|
||||
* 12728: Completion/User/_man: complete _files instead of
|
||||
manpages if -l or --local-file is present on the commandline.
|
||||
|
||||
2000-09-02 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 12725: Util/helpfiles: Recognize more end-of-page patterns, and
|
||||
|
@ -4,6 +4,10 @@ setopt localoptions rcexpandparam
|
||||
|
||||
local rep expl star approx mrd
|
||||
|
||||
if [[ $words[1] == man ]] && (( $words[(I)-l] + $words[(I)--local-file] )); then
|
||||
_files || return 0
|
||||
fi
|
||||
|
||||
if [[ $compstate[pattern_match] != [^*] ]]; then
|
||||
# If a string other than *, we just want correction, so no `*'.
|
||||
star='*'
|
||||
|
Loading…
Reference in New Issue
Block a user