On 27-Apr-2020 00:53, Bram Moolenaar wrote:
Patch 8.2.0646
Problem: t_Co uses the value of $COLORS in the GUI. (Masato Nishihata)
Solution: Ignore $COLORS for the GUI. (closes #5992)
Files: src/os_unix.c, src/term.c
After this patch HP-UX spits out this error:
cc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -D_REENTRANT -o
objects/os_unix.o os_unix.c
cc: "os_unix.c", line 4199: error 1588: "colors" undefined.
cc: "os_unix.c", line 4199: warning 563: Argument #4 is not the correct
type.
*** Error exit code 1
Stop.
The attached patch tries to fix it.
Cheers
John
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/54cd5b56-ddae-41ab-6723-48e065efd260%40internode.on.net.
--- os_unix.c.orig 2020-04-27 05:17:55.076304800 +1000
+++ os_unix.c 2020-04-28 10:12:16.669772900 +1000
@@ -4196,7 +4196,7 @@
vim_snprintf(envbuf_Columns, sizeof(envbuf_Columns),
"COLUMNS=%ld", columns);
putenv(envbuf_Columns);
- vim_snprintf(envbuf_Colors, sizeof(envbuf_Colors), "COLORS=%ld", colors);
+ vim_snprintf(envbuf_Colors, sizeof(envbuf_Colors), "COLORS=%ld", t_colors);
putenv(envbuf_Colors);
# ifdef FEAT_TERMINAL
if (is_terminal)