1
0
forked from aniani/vim

patch 8.0.1525: using :wqa exits even if a job runs in a terminal window

Problem:    Using :wqa exits even if a job runs in a terminal window. (Jason
            Felice)
Solution:   Check if a terminal has a running job. (closes #2654)
This commit is contained in:
Bram Moolenaar
2018-02-19 23:10:02 +01:00
parent 9c8816bd30
commit 7a76092a51
6 changed files with 23 additions and 4 deletions

View File

@@ -712,6 +712,15 @@ func Test_terminal_wall()
unlet g:job
endfunc
func Test_terminal_wqall()
let buf = Run_shell_in_terminal({})
call assert_fails('wqall', 'E948')
call Stop_shell_in_terminal(buf)
call term_wait(buf)
exe buf . 'bwipe'
unlet g:job
endfunc
func Test_terminal_composing_unicode()
let save_enc = &encoding
set encoding=utf-8