mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-14 06:23:50 -05:00
Update
This commit is contained in:
@@ -153,9 +153,10 @@ function! s:xwin_template.xwin_exists() dict abort " {{{1
|
||||
" If xwin_id is unset, check if matching viewer windows exist
|
||||
"
|
||||
if self.xwin_id == 0
|
||||
if has_key(self, 'get_pid')
|
||||
let l:pid = has_key(self, 'get_pid') ? self.get_pid() : 0
|
||||
if l:pid > 0
|
||||
let cmd = 'xdotool search'
|
||||
\ . ' --all --pid ' . self.get_pid()
|
||||
\ . ' --all --pid ' . l:pid
|
||||
\ . ' --name ' . fnamemodify(self.out(), ':t')
|
||||
let self.xwin_id = get(split(system(cmd), '\n'), 0)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user