summaryrefslogtreecommitdiffstats
path: root/src/hardcopy.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-04-21 21:10:14 +0200
committerBram Moolenaar <Bram@vim.org>2016-04-21 21:10:14 +0200
commit8a633e3427b47286869aa4b96f2bfc1fe65b25cd (patch)
treeeec90d2e5fdc9a9da532a024ca59993e000813f6 /src/hardcopy.c
parent6d4431e7b675ba7a0194c0b8eb84b7d92e4e7953 (diff)
patch 7.4.1770v7.4.1770
Problem: Cannot use true color in the terminal. Solution: Add the 'guicolors' option. (Nikolai Pavlov)
Diffstat (limited to 'src/hardcopy.c')
-rw-r--r--src/hardcopy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hardcopy.c b/src/hardcopy.c
index f65a6dd40a..aaa20102c8 100644
--- a/src/hardcopy.c
+++ b/src/hardcopy.c
@@ -164,7 +164,7 @@ parse_printoptions(void)
#if (defined(FEAT_MBYTE) && defined(FEAT_POSTSCRIPT)) || defined(PROTO)
/*
- * Parse 'printoptions' and set the flags in "printer_opts".
+ * Parse 'printmbfont' and set the flags in "mbfont_opts".
* Returns an error message or NULL;
*/
char_u *
@@ -307,8 +307,8 @@ prt_get_attr(
pattr->underline = (highlight_has_attr(hl_id, HL_UNDERLINE, modec) != NULL);
pattr->undercurl = (highlight_has_attr(hl_id, HL_UNDERCURL, modec) != NULL);
-# ifdef FEAT_GUI
- if (gui.in_use)
+# if defined(FEAT_GUI) || defined(FEAT_TERMTRUECOLOR)
+ if (USE_24BIT)
{
bg_color = highlight_gui_color_rgb(hl_id, FALSE);
if (bg_color == PRCOLOR_BLACK)