Skip to content

Commit 84a8ee4

Browse files
committed
runtime(context): use fnameescape() for the Log command
Problem: runtime(context) does not escape the detected log file Solution: Use fnameescape() (Michał Majchrowicz) fyi @lifepillar Signed-off-by: Christian Brabandt <[email protected]>
1 parent 664701e commit 84a8ee4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

runtime/autoload/context.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ vim9script
44
# Maintainer: Nicola Vitacolonna <[email protected]>
55
# Former Maintainers: Nikolai Weibull <[email protected]>
66
# Latest Revision: 2026 Feb 03
7+
# Last Change:
8+
# 2026 Mar 30 by Vim project: Use fnameescape for the Log command
79

810
# Typesetting {{{
911
import autoload './typeset.vim'
@@ -33,7 +35,7 @@ export def Log(bufname: string)
3335
var logpath = typeset.LogPath(bufname)
3436

3537
if filereadable(logpath)
36-
execute 'edit' typeset.LogPath(bufname)
38+
execute 'edit' .. fnameescape(typeset.LogPath(bufname))
3739
return
3840
endif
3941

0 commit comments

Comments
 (0)