-
Notifications
You must be signed in to change notification settings - Fork 407
[regression] zathura forward search opens a new instance when pwd is a symlink #2342
Copy link
Copy link
Closed
Labels
Description
Description
This is a regression after 7155410
When the real place of tex file is ~/foo and I'm working in a symlink ~/bar -> ~/foo, <localleader>ll opens a zathura window A, <localleader>lv opens another window B, where:
- backward search works in window A only
- forward search works in window B only
Moreover, when having the autocmd to close viewer on exit, only window A gets closed.
Steps to reproduce
- mkdir foo
- ln -s foo bar
- cd bar
- vim -u minimal.vim minimal.tex
minimal.vim
call plug#begin()
Plug 'lervag/vimtex'
call plug#end()
set nocp
call remote_startserver('VIM')
let g:vimtex_view_method = 'zathura'
" Close viewers when VimTeX buffers are closed
function! CloseViewers()
if executable('xdotool')
\ && exists('b:vimtex.viewer.xwin_id')
\ && b:vimtex.viewer.xwin_id > 0
call system('xdotool windowclose '. b:vimtex.viewer.xwin_id)
endif
endfunction
augroup vimtex_event_2
au!
au User VimtexEventQuit call CloseViewers()
augroup ENDminimal.tex
\documentclass{minimal}
\begin{document}
Hello world!
\end{document}Expected behavior
forward search works in window A and no new window opens
Actual behavior
as described before
Do you use a latexmkrc file?
No
VimtexInfo
System info:
OS: Arch Linux
Vim version: VIM 8.2 (1-4464)
Has clientserver: true
Servername: VIM
VimTeX project: minimal
base: minimal.tex
root: /home/dianlujitao/foo
tex: /home/dianlujitao/foo/minimal.tex
main parser: current file verified
document class: minimal
compiler: latexmk
engine: -pdf
options:
-verbose
-file-line-error
-synctex=1
-interaction=nonstopmode
callback: 1
continuous: 1
executable: latexmk
viewer: Zathura
xwin id: 0
qf method: LaTeX logfileReactions are currently unavailable