From 066d6d11202ba710da777fb23b8342d52d47eb72 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 14 Dec 2016 00:59:19 +0000 Subject: [PATCH] Do not use find -printf in doc completion implementation --- rc/core/doc.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/core/doc.kak b/rc/core/doc.kak index 421de8ec..ace77583 100644 --- a/rc/core/doc.kak +++ b/rc/core/doc.kak @@ -32,8 +32,8 @@ 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 - printf %s\\n "${l%.*}" + find "${kak_runtime}/../doc/kak/manpages/" -type f -iname "*.gz" | while read l; do + basename "${l%.*}" done } \ doc -docstring %{doc []: open a buffer containing documentation about a given topic