From 7115858093a54ae94e5c4b07f75fa30b46bff668 Mon Sep 17 00:00:00 2001 From: Grant Moyer Date: Fri, 23 Jun 2023 12:38:19 -0400 Subject: [PATCH] Quote doc file path in doc-render command Without quoting the file path, the `doc` command fails to display any docs with spaces or backslashs (on Cygwin) in their paths. --- rc/tools/doc.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/tools/doc.kak b/rc/tools/doc.kak index b4a3b45b..c1ceef08 100644 --- a/rc/tools/doc.kak +++ b/rc/tools/doc.kak @@ -99,7 +99,7 @@ define-command -hidden doc-follow-link %{ define-command -params 1 -hidden doc-render %{ edit! -scratch "*doc-%sh{basename $1 .asciidoc}*" - execute-keys "!cat %arg{1}gg" + execute-keys "!cat '%arg{1}'gg" doc-parse-anchors