Skip to content

Commit aa5c931

Browse files
committed
runtime(typeset): Use fnameescape() for the :lcd command
Problem: runtime(typeset) does not escape the detected directory Solution: Use fnameescape() (Michał Majchrowicz) fyi @lifepillar Signed-off-by: Christian Brabandt <[email protected]>
1 parent 84a8ee4 commit aa5c931

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

runtime/autoload/typeset.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ vim9script
33
# Language: Generic TeX typesetting engine
44
# Maintainer: Nicola Vitacolonna <[email protected]>
55
# Latest Revision: 2026 Feb 19
6+
# Last Change:
7+
# 2026 Mar 30 by Vim project: Use fnameescape for the ProcessOutput command
68

79
# Constants and helpers {{{
810
const SLASH = !exists("+shellslash") || &shellslash ? '/' : '\'
@@ -60,7 +62,7 @@ def ProcessOutput(qfid: number, wd: string, efm: string, ch: channel, msg: strin
6062
endif
6163

6264
# Make sure the working directory is correct
63-
silent execute "lcd" wd
65+
silent execute "lcd" .. fnameescape(wd)
6466
setqflist([], 'a', {'id': qfid, 'lines': [msg], 'efm': efm})
6567
silent lcd -
6668
enddef

0 commit comments

Comments
 (0)