From 17f184a8662bf58fdabac268f4b8b198bfe8a324 Mon Sep 17 00:00:00 2001 From: Enno Nagel Date: Tue, 13 Jan 2015 12:27:46 +0100 Subject: [PATCH] if inverse search invoked for the first time, then check if viewer open --- autoload/latex/view.vim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/autoload/latex/view.vim b/autoload/latex/view.vim index 868087b..17b54bf 100644 --- a/autoload/latex/view.vim +++ b/autoload/latex/view.vim @@ -125,9 +125,8 @@ function! latex#view#mupdf_rsearch() "{{{1 let mupdf_id = data.mupdf_id - if mupdf_id == 0 - return - endif + let data.mupdf_rsearch = {} + let outfile = data.out() " Get page number let cmd = "xdotool getwindowname " . mupdf_id