From 35a6d4916e25279a2e95baacc5445ebd5905dffe Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 6 Oct 2016 13:38:49 +0100 Subject: [PATCH] Fix :doc completion candidates, they do not depend on the current word Fixes #845 --- rc/core/doc.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/core/doc.kak b/rc/core/doc.kak index d093339c..88c0013f 100644 --- a/rc/core/doc.kak +++ b/rc/core/doc.kak @@ -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 } \