Skip to content

Commit 690e8e9

Browse files
committed
Added fnameescape() for securing Open to work fine
1 parent dd6950e commit 690e8e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ftplugin/markdown.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ if markdown_extras.use_pandoc
7575
# TODO: pandoc compiler returns v:shell_error = 0 even if there are
7676
# errors. Add a condition on v:shell_error once pandoc compiler is fixed.
7777
if exists(':Open') != 0
78-
exe $'Open {output_file}'
78+
exe $'Open {fnameescape(output_file)}'
7979
endif
8080
enddef
8181

0 commit comments

Comments
 (0)