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.
This commit is contained in:
Grant Moyer 2023-06-23 12:38:19 -04:00 committed by GitHub
parent e06e409dc1
commit 7115858093
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}<ret>gg"
execute-keys "!cat '%arg{1}'<ret>gg"
doc-parse-anchors