Skip to content

Instantly share code, notes, and snippets.

@c9s
Created December 31, 2011 13:13
Show Gist options
  • Save c9s/1543979 to your computer and use it in GitHub Desktop.
Save c9s/1543979 to your computer and use it in GitHub Desktop.
diff --git a/plugin/bufexplorer.vim b/plugin/bufexplorer.vim
index 8791363..6024bf7 100644
--- a/plugin/bufexplorer.vim
+++ b/plugin/bufexplorer.vim
@@ -183,7 +183,10 @@ function! s:BEActivateBuffer()
elseif empty(l) || index(l, b) == -1
" Add new buffer to this tab buffer list
let l = add(l, b)
- let s:tabSpace[tabpagenr()] = l
+
+ " note: it will be out of range
+ " original solution: let s:tabSpace[tabpagenr()] = l
+ call add(s:tabSpace, l )
if g:bufExplorerOnlyOneTab == 1
" If a buffer can only be available in 1 tab page
@alswl
Copy link

alswl commented Jul 30, 2012

This solve the problem detected while processing function <SNR>63_BEActivateBuffer, Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment