mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-17 19:40:27 +01:00
Don't consider file as valid if its window is in diff mode
This commit is contained in:
@@ -4024,6 +4024,12 @@ function! s:IsValidFile(fname, ftype) abort
|
||||
return 0
|
||||
endif
|
||||
|
||||
let winnr = bufwinnr(a:fname)
|
||||
if winnr != -1 && getwinvar(winnr, '&diff')
|
||||
call s:debug('Window is in diff mode')
|
||||
return 0
|
||||
endif
|
||||
|
||||
if &previewwindow
|
||||
call s:debug('In preview window')
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user