patch 8.0.0739: terminal resizing doesn't work well.
Problem: Terminal resizing doesn't work well.
Solution: Resize the terminal to the Vim window and the other way around.
Avoid mapping typed keys. Set the environment properly.
diff --git a/src/structs.h b/src/structs.h
index 88e71b6..5a7f28b 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1732,6 +1732,12 @@
int jo_id;
char_u jo_soe_buf[NUMBUFLEN];
char_u *jo_stoponexit;
+
+#ifdef FEAT_TERMINAL
+ /* when non-zero run the job in a terminal window of this size */
+ int jo_term_rows;
+ int jo_term_cols;
+#endif
} jobopt_T;