From 8a26f05585fcd932fb5c53e4c845f97b4d098c43 Mon Sep 17 00:00:00 2001 From: IdanArye Date: Sat, 17 May 2014 19:27:46 +0300 Subject: [PATCH] Attempt to fix a crash that happens sometimes with the shell buffer --- autoload/vebugger/std.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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('')