Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if bufname("%") ==# item in SrcExpl_AdaptPlugins() can not support NERD_tree_* and __Tagbar__.* #13

Open
Shaiya2688 opened this issue Nov 27, 2018 · 0 comments

Comments

@Shaiya2688
Copy link

829 " SrcExpl_AdaptPlugins() {{{
830
831 " The Source Explorer window will not work when the cursor on the
832
833 " window of other plugins, such as 'Taglist', 'NERD tree' etc.
834
835 function! SrcExpl_AdaptPlugins()
836
837 " Traversal the list of other plugins
838 for item in g:SrcExpl_pluginList
839 " If they acted as a split window
840 if bufname("%") ==# item
841 " Just avoid this operation
842 return -1
843 endif
844 endfor
845
846 " Aslo filter the Quickfix window
847 if &buftype ==# "quickfix"
848 return 0
849 endif
850
851 " Safe
852 return 0
853
854 endfunction " }}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant