Skip to content

Commit 145a2fd

Browse files
committed
Escape all system command filenames
In the macos implementation it is possible that spaces appear in the absolute file path, so we have to escape it for all system command uses. All other platform implementations are not able to end up with spaces in system command arguments (most of them are hardcoded and do not depend on the directory where vim is installed). Fixes #13
1 parent a0221ff commit 145a2fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/lumen/platforms/macos.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
let s:exe = resolve(expand('<sfile>:p:h')) . '/macos/watcher'
1+
let s:exe = shellescape(resolve(expand('<sfile>:p:h')) . '/macos/watcher')
22

33
func lumen#platforms#macos#watch_cmd()
44
return [s:exe]

0 commit comments

Comments
 (0)