Skip to content

Instantly share code, notes, and snippets.

@majutsushi
Created April 4, 2011 14:08
Show Gist options
  • Save majutsushi/901683 to your computer and use it in GitHub Desktop.
Save majutsushi/901683 to your computer and use it in GitHub Desktop.
Fix Tlist_Refresh_Folds bug
diff --git a/vim/.vim/bundle/taglist/plugin/taglist.vim b/vim/.vim/bundle/taglist/plugin/taglist.vim
index 59901f6..74487a1 100644
--- a/vim/.vim/bundle/taglist/plugin/taglist.vim
+++ b/vim/.vim/bundle/taglist/plugin/taglist.vim
@@ -4097,6 +4097,11 @@ endfunction
" window. Used after entering a tab. If this is not done, then the folds
" are not properly created for taglist windows displayed in multiple tabs.
function! s:Tlist_Refresh_Folds()
+
+ if g:Tlist_Show_One_File
+ return
+ endif
+
let winnum = bufwinnr(g:TagList_title)
if winnum == -1
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment