d11wtq / ctrlp_bdelete.vim

An extension to ctrlp.vim for deleting open buffers
58 stars 14 forks source link

Can't call init() several times #3

Closed wdesmet closed 10 years ago

wdesmet commented 10 years ago

Calling init() always seems to store the previous handler and then call it. If you call it twice, this introduces some sort of recursive loop causing the stack to overflow. Since the default advice is to call it in the vimrc, this does happen to me from time to time when I resource my vimrc. Either the plugin should recognize its own handler or detect that it's been loaded before and do nothing in that case.

d11wtq commented 10 years ago

Oh yeah, that should be easy to fix with a guard clause! Thanks for the heads-up :)

d11wtq commented 10 years ago

Fixed in 7f354de.