From 0f96a6fc75136285b3ddc13b5ba5c100bc59cfae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20LEESCO?= Date: Sun, 10 Aug 2025 11:53:44 -0700 Subject: [PATCH] implement #2835 --- autoload/vimtex/view/texshop.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/vimtex/view/texshop.vim b/autoload/vimtex/view/texshop.vim index cdd71195dea..8046384c853 100644 --- a/autoload/vimtex/view/texshop.vim +++ b/autoload/vimtex/view/texshop.vim @@ -52,7 +52,7 @@ function! s:make_cmd_view(outfile, open, sync) abort " {{{1 \ '-e ''tell application "TeXShop"''', \ '-e ''try''', \ '-e ''set theDocs to get documents whose path is thePath''', - \ '-e ''if (count of theDocs) > 0 then revert theDocs''', + \ '-e ''if (count of theDocs) > 0 then revert(theDocs)''', \ '-e ''end try''', \ a:open ? '-e ''open theFile''' : '', \ g:vimtex_view_texshop_activate ? '-e ''activate''' : '', @@ -62,7 +62,7 @@ function! s:make_cmd_view(outfile, open, sync) abort " {{{1 " Define variables for the source file, line and column numbers: let l:sourcefile = shellescape(expand('%'), 1) - let l:sourcefileFull = shellescape(expand('%:p'), 1) + let l:sourcefileFull = expand('%:p') let l:linenr = line('.') let l:colnr = col('.')