Problem: runtime(context) does not escape the detected log file
Solution: Use fnameescape() (MichaĆ Majchrowicz)
fyi @lifepillar
Signed-off-by: Christian Brabandt <cb@256bit.org>
# Maintainer: Nicola Vitacolonna <nvitacolonna@gmail.com>
# Former Maintainers: Nikolai Weibull <now@bitwi.se>
# Latest Revision: 2026 Feb 03
+# Last Change:
+# 2026 Mar 30 by Vim project: Use fnameescape for the Log command
# Typesetting {{{
import autoload './typeset.vim'
var logpath = typeset.LogPath(bufname)
if filereadable(logpath)
- execute 'edit' typeset.LogPath(bufname)
+ execute 'edit' .. fnameescape(typeset.LogPath(bufname))
return
endif