patch 8.0.1714: term_setsize() does not give an error in a normal buffer
Problem: Term_setsize() does not give an error in a normal buffer.
Solution: Add an error message.
diff --git a/src/terminal.c b/src/terminal.c
index 7162d68..be594c4 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -4629,7 +4629,12 @@
term_T *term;
varnumber_T rows, cols;
- if (buf == NULL || buf->b_term->tl_vterm == NULL)
+ if (buf == NULL)
+ {
+ EMSG(_("E955: Not a terminal buffer"));
+ return;
+ }
+ if (buf->b_term->tl_vterm == NULL)
return;
term = buf->b_term;
rows = get_tv_number(&argvars[1]);