Fix :doc completion candidates, they do not depend on the current word

Fixes #845
This commit is contained in:
Maxime Coste 2016-10-06 13:38:49 +01:00
parent f67d5076c4
commit 35a6d4916e

View File

@ -30,7 +30,7 @@ def -hidden -params 1..2 _doc-open %{
def -params 1..2 \
-shell-candidates %{
find "${kak_runtime}/../doc/kak/manpages/" -type f -iname "*$@*.gz" -printf '%f\n' | while read l; do
find "${kak_runtime}/../doc/kak/manpages/" -type f -iname "*.gz" -printf '%f\n' | while read l; do
printf %s\\n "${l%.*}"
done
} \