diff --git a/autoload/vebugger/std.vim b/autoload/vebugger/std.vim index a180c12..09075d2 100644 --- a/autoload/vebugger/std.vim +++ b/autoload/vebugger/std.vim @@ -81,7 +81,7 @@ function! vebugger#std#openShellBuffer(debugger) endif 8 new let b:debugger=a:debugger - autocmd BufDelete call b:debugger.kill() + autocmd BufDelete if exists('b:debugger') | call b:debugger.kill() | endif setlocal buftype=nofile setlocal bufhidden=wipe let a:debugger.shellBuffer=bufnr('')