From e76627c9be313bbdd1fde7d23e07da2e1fe6834c Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Thu, 16 Mar 2023 13:13:53 +0100 Subject: [PATCH] fix(view): update skim check to macOS changes Problem: macOS 13.4 adds a deprecation warning to the introspection method Skim uses for its scripting. This breaks the check whether Skim is installed, leading to an error message because the looked-for output is now on a second line. Solution: Concatenate all output lines instead of only looking at the first line. --- autoload/vimtex/view/skim.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vimtex/view/skim.vim b/autoload/vimtex/view/skim.vim index 4faf2af3e4..3f5a8d4891 100644 --- a/autoload/vimtex/view/skim.vim +++ b/autoload/vimtex/view/skim.vim @@ -28,7 +28,7 @@ function! s:viewer._check() dict abort " {{{1 let l:output = vimtex#jobs#capture( \ 'osascript -l JavaScript -e ''Application("Skim").id()''') - if l:output[0] !~# '^net.sourceforge.skim-app' + if join(l:output) !~# 'net.sourceforge.skim-app' call vimtex#log#error('Skim is not installed!') return v:false endif