From 08b474b59f58369d5f15a69d1ccb38cd28e460e6 Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Thu, 23 Feb 2012 20:41:31 +1300 Subject: [PATCH] Add some more debugging messages --- autoload/tagbar.vim | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index e55f209..5fc0557 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -1521,6 +1521,7 @@ function! s:OpenWindow(flags) let w:autoclose = autoclose endif endif + call s:LogDebugMessage("OpenWindow finished, Tagbar already open") return endif @@ -3110,6 +3111,8 @@ endfunction " s:winexec() {{{2 function! s:winexec(cmd) + call s:LogDebugMessage("Executing without autocommands: " . a:cmd) + let eventignore_save = &eventignore set eventignore=BufEnter @@ -3221,6 +3224,7 @@ endfunction " Automatically open Tagbar if one of the open buffers contains a supported " file function! tagbar#autoopen(...) + call s:LogDebugMessage('tagbar#autoopen called on ' . bufname('%')) let always = a:0 > 0 ? a:1 : 1 call s:Init() @@ -3230,10 +3234,15 @@ function! tagbar#autoopen(...) let ftype = s:DetectFiletype(bufnr) if s:IsValidFile(bufname(bufnr), ftype) call s:OpenWindow('') + call s:LogDebugMessage('tagbar#autoopen finished ' . + \ 'after finding valid file') return endif endif endfor + + call s:LogDebugMessage('tagbar#autoopen finished ' . + \ 'without finding valid file') endfunction " Modeline {{{1