From 7cc2fd2877844c41b7a3ad81047a7064ef8700c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Mon, 8 Jun 2015 09:14:07 +0200 Subject: [PATCH] Fixed problem with `\lv` mapping (#180) --- autoload/vimtex/view.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vimtex/view.vim b/autoload/vimtex/view.vim index 7b72328..7ff383d 100644 --- a/autoload/vimtex/view.vim +++ b/autoload/vimtex/view.vim @@ -469,7 +469,7 @@ endfunction function! s:focus_viewer() dict " {{{1 if !executable('xdotool') | return | endif - if self.xwin_exists() + if self.xwin_id > 0 silent call system('xdotool windowfocus ' . self.xwin_id . ' --sync') endif endfunction