about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-08-04 15:54:26 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-08-05 12:37:30 +0000
commitdfae92c483e78119222d48e924f3f338053eaa93 (patch)
tree4530f5cc9ff5eb59e83df821b936a551a2edee25 /ChangeLog
parent71f1653020563696b162753539137e355f585c4d (diff)
downloadzsh-dfae92c483e78119222d48e924f3f338053eaa93.tar.gz
zsh-dfae92c483e78119222d48e924f3f338053eaa93.tar.xz
zsh-dfae92c483e78119222d48e924f3f338053eaa93.zip
38996: _man: Support _correct_word.
Since compfiles is undocumented, avoid its use altogether, replacing it by
a construct that blackbox analysis suggests to be equivalent.

The compfiles call being removed effected the following change (when
completing «man -S 8:1 getc<TAB>»):

    BEFORE THE CALL:
        typeset -a pages=( /home/daniel/prefix/zsh/share/man/man1/
                           /usr/share/man/man8/
                           /usr/share/man/man1/ )
    AFTER THE CALL:
        typeset -a pages=( '/home/daniel/prefix/zsh/share/man/man1/getc*(8|1)*'
                           '/usr/share/man/man8/getc*(8|1)*'
                           '/usr/share/man/man1/getc*(8|1)*' )

This patch effects the same transformation (modulo doubling the final slash).

Any -M parameter will be passed to compadd.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog2
1 files changed, 2 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 82178dfdc..5ab0f3b7b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2016-08-05  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
+	* 38996: Completion/Unix/Command/_man: Support _correct_word.
+
 	* 38994: Completion/Unix/Command/_man: Fix two bugs when
 	completing manpage filenames in separate-sections mode.