Close shell buffer when killing the debugger
This commit is contained in:
parent
d016e6aec0
commit
806d6228cc
@ -289,6 +289,7 @@ function! vebugger#killDebugger()
|
|||||||
autocmd!
|
autocmd!
|
||||||
augroup END
|
augroup END
|
||||||
if exists('s:debugger')
|
if exists('s:debugger')
|
||||||
|
call vebugger#std#closeShellBuffer(s:debugger)
|
||||||
call s:debugger.closeTerminalBuffer()
|
call s:debugger.closeTerminalBuffer()
|
||||||
call s:debugger.kill()
|
call s:debugger.kill()
|
||||||
unlet s:debugger
|
unlet s:debugger
|
||||||
|
@ -101,6 +101,18 @@ function! vebugger#std#openShellBuffer(debugger)
|
|||||||
wincmd p
|
wincmd p
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
"Closes the shell buffer
|
||||||
|
function! vebugger#std#closeShellBuffer(debugger)
|
||||||
|
if has_key(a:debugger,'shellBuffer')
|
||||||
|
if -1<bufwinnr(a:debugger.shellBuffer)
|
||||||
|
let l:bufwin=bufwinnr(a:debugger.shellBuffer)
|
||||||
|
exe l:bufwin.'wincmd w'
|
||||||
|
wincmd c
|
||||||
|
wincmd p
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
let s:standardFunctions={}
|
let s:standardFunctions={}
|
||||||
|
|
||||||
"Write a line to the shell buffer
|
"Write a line to the shell buffer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user