forked from aniani/vim
patch 8.0.1592: terminal windows in a session are not properly restored
Problem: Terminal windows in a session are not properly restored. Solution: Add "terminal" in 'sessionoptions'. When possible restore the command running in a terminal.
This commit is contained in:
@@ -30,13 +30,6 @@ func Run_shell_in_terminal(options)
|
||||
return buf
|
||||
endfunc
|
||||
|
||||
" Stops the shell started by Run_shell_in_terminal().
|
||||
func Stop_shell_in_terminal(buf)
|
||||
call term_sendkeys(a:buf, "exit\r")
|
||||
call WaitFor('job_status(g:job) == "dead"')
|
||||
call assert_equal('dead', job_status(g:job))
|
||||
endfunc
|
||||
|
||||
func Test_terminal_basic()
|
||||
au BufWinEnter * if &buftype == 'terminal' | let b:done = 'yes' | endif
|
||||
let buf = Run_shell_in_terminal({})
|
||||
|
Reference in New Issue
Block a user