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)
FOR_ALL_BUFFERS(buf)
{
- if (bufIsChanged(buf))
+ if (bufIsChanged(buf) && !bt_dontwrite(buf))
{
/*
* Check if there is a reason the buffer cannot be written:
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
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1202,
/**/
1201,
/**/