Patch 8.1.1146
Problem:    In MS-Windows console colors in a terminal window are wrong.
Solution:   Use the ansi index also for 16 colors. (Ken Takata)
Files:      src/terminal.c


*** ../vim-8.1.1145/src/terminal.c      2019-04-06 22:01:20.756989404 +0200
--- src/terminal.c      2019-04-11 11:23:46.712315123 +0200
***************
*** 2433,2440 ****
      if (color->ansi_index != VTERM_ANSI_INDEX_NONE)
      {
        /* First 16 colors and default: use the ANSI index, because these
!        * colors can be redefined. */
!       if (t_colors >= 16)
            return color->ansi_index;
        switch (color->ansi_index)
        {
--- 2433,2440 ----
      if (color->ansi_index != VTERM_ANSI_INDEX_NONE)
      {
        /* First 16 colors and default: use the ANSI index, because these
!        * colors can be redefined, we use the RGB values. */
!       if (t_colors > 256)
            return color->ansi_index;
        switch (color->ansi_index)
        {
***************
*** 3604,3609 ****
--- 3604,3610 ----
      for (; index < 16; index++)
      {
        VTermColor      color;
+ 
        color.red = (unsigned)(rgb[index] >> 16);
        color.green = (unsigned)(rgb[index] >> 8) & 255;
        color.blue = (unsigned)rgb[index] & 255;
*** ../vim-8.1.1145/src/version.c       2019-04-11 11:19:21.553778627 +0200
--- src/version.c       2019-04-11 11:39:27.027580424 +0200
***************
*** 773,774 ****
--- 773,776 ----
  {   /* Add new patch number below this line */
+ /**/
+     1146,
  /**/

-- 
"Women marry men hoping they will change. Men marry women hoping
they will not. So each is inevitably disappointed."
 - Einstein

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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.

Raspunde prin e-mail lui