patch 8.2.5056: the channel log only contains some of the raw terminal output
Problem: The channel log only contains some of the raw terminal output.
Solution: Add the "o" flag to log all terminal output. Use it for "--log".
diff --git a/src/vim.h b/src/vim.h
index 9a97033..6362835 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1479,6 +1479,17 @@
#define MAYBE 2 // sometimes used for a variant on TRUE
+#define LOG_ALWAYS 9 // must be different from TRUE and FALSE
+
+#ifdef FEAT_JOB_CHANNEL
+// If "--log logfile" was used or ch_logfile() was called then log some or all
+// terminal output.
+# define MAY_WANT_TO_LOG_THIS if (ch_log_output == FALSE) ch_log_output = TRUE;
+#else
+// no logging support
+# define MAY_WANT_TO_LOG_THIS
+#endif
+
#ifndef UINT32_T
typedef UINT32_TYPEDEF UINT32_T;
#endif