forked from aniani/vim
patch 8.0.1202: :wall gives an errof for a terminal window
Problem: :wall gives an errof for a terminal window. (Marius Gedminas) Solution: Don't try writing a buffer that can't be written. (Yasuhiro Matsumoto, closes #2190)
This commit is contained in:
@@ -676,3 +676,12 @@ func Test_terminal_tmap()
|
||||
call TerminalTmap(1)
|
||||
call TerminalTmap(0)
|
||||
endfunc
|
||||
|
||||
func Test_terminal_wall()
|
||||
let buf = Run_shell_in_terminal({})
|
||||
wall
|
||||
call Stop_shell_in_terminal(buf)
|
||||
call term_wait(buf)
|
||||
exe buf . 'bwipe'
|
||||
unlet g:job
|
||||
endfunc
|
||||
|
Reference in New Issue
Block a user