Skip to content

Commit dc90fea

Browse files
committed
merge: fix texshop viewer
refer: #3200, #2835
2 parents c74d992 + c255de7 commit dc90fea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/vimtex/view/texshop.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function! s:make_cmd_view(outfile, open, sync) abort " {{{1
5252
\ '-e ''tell application "TeXShop"''',
5353
\ '-e ''try''',
5454
\ '-e ''set theDocs to get documents whose path is thePath''',
55-
\ '-e ''if (count of theDocs) > 0 then revert theDocs''',
55+
\ '-e ''if (count of theDocs) > 0 then revert(theDocs)''',
5656
\ '-e ''end try''',
5757
\ a:open ? '-e ''open theFile''' : '',
5858
\ g:vimtex_view_texshop_activate ? '-e ''activate''' : '',
@@ -62,7 +62,7 @@ function! s:make_cmd_view(outfile, open, sync) abort " {{{1
6262

6363
" Define variables for the source file, line and column numbers:
6464
let l:sourcefile = shellescape(expand('%'), 1)
65-
let l:sourcefileFull = shellescape(expand('%:p'), 1)
65+
let l:sourcefileFull = expand('%:p')
6666
let l:linenr = line('.')
6767
let l:colnr = col('.')
6868

0 commit comments

Comments
 (0)