On Do, 21 Apr 2016, Bram Moolenaar wrote:
>
> Patch 7.4.1770
> Problem: Cannot use true color in the terminal.
> Solution: Add the 'guicolors' option. (Nikolai Pavlov)
> Files: runtime/doc/options.txt, runtime/doc/term.txt,
> runtime/doc/various.txt, src/auto/configure, src/config.h.in,
> src/configure.in, src/eval.c, src/globals.h, src/hardcopy.c,
> src/option.c, src/option.h, src/proto/term.pro, src/screen.c,
> src/structs.h, src/syntax.c, src/term.c, src/term.h,
> src/version.c, src/vim.h
another small change
When synIDattr(..., 'fg') or
synIDattr(..., 'bg') is used, the terminal colors are returned, even if
'guicolors' is set. This patch fixes it:
diff --git a/src/eval.c b/src/eval.c
index 146348d..16d0e47 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -20014,8 +20014,8 @@ f_synIDattr(typval_T *argvars UNUSED, typval_T *rettv)
}
else
{
-#ifdef FEAT_GUI
- if (gui.in_use)
+#if defined(FEAT_GUI) || defined(FEAT_TERMTRUECOLOR)
+ if (USE_24BIT)
modec = 'g';
else
#endif
Best,
Christian
--
Ich will nichts mit den Nieren wagen
solang' daran die Viren nagen.
--
--
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].
For more options, visit https://groups.google.com/d/optout.