Browse files

prevent supertab chain from self referencing

  • Loading branch information...
1 parent 374811b commit d34f3c01f9b7f4eb9d0f942bcc3ecd65c31128fc @ervandew committed Oct 3, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 plugin/supertab.vim
View
6 plugin/supertab.vim
@@ -677,8 +677,10 @@ function! s:ExpandMap(map) " {{{
endfunction " }}}
function! SuperTabChain(completefunc, completekeys) " {{{
- let b:SuperTabChain = [a:completefunc, a:completekeys]
- setlocal completefunc=SuperTabCodeComplete
+ if a:completefunc != 'SuperTabCodeComplete'
+ let b:SuperTabChain = [a:completefunc, a:completekeys]
+ setlocal completefunc=SuperTabCodeComplete
+ endif
endfunction " }}}
function! SuperTabCodeComplete(findstart, base) " {{{

0 comments on commit d34f3c0

Please sign in to comment.