Attempt to fix a crash that happens sometimes with the shell buffer

This commit is contained in:
IdanArye 2014-05-17 19:27:46 +03:00
parent 71671f0fa4
commit 8a26f05585

View File

@ -81,7 +81,7 @@ function! vebugger#std#openShellBuffer(debugger)
endif
8 new
let b:debugger=a:debugger
autocmd BufDelete <buffer> call b:debugger.kill()
autocmd BufDelete <buffer> if exists('b:debugger') | call b:debugger.kill() | endif
setlocal buftype=nofile
setlocal bufhidden=wipe
let a:debugger.shellBuffer=bufnr('')