Patch 8.2.4775
Problem:    SpellBad highlighting does not work in Konsole.
Solution:   Do not keep t_8u defined for Konsole.  Redraw when t_8u is reset.
            (closes #10177)
Files:      src/term.c


*** ../vim-8.2.4774/src/term.c  2022-04-17 14:18:07.364733158 +0100
--- src/term.c  2022-04-17 17:28:11.629048582 +0100
***************
*** 4775,4783 ****
            // vandyke SecureCRT sends 1;136;0
        }
  
!       // Konsole sends 0;115;0
!       else if (version == 115 && arg[0] == 0 && arg[2] == 0)
!           term_props[TPR_UNDERLINE_RGB].tpr_status = TPR_YES;
  
        // GNU screen sends 83;30600;0, 83;40500;0, etc.
        // 30600/40500 is a version number of GNU screen. DA2 support is added
--- 4775,4784 ----
            // vandyke SecureCRT sends 1;136;0
        }
  
!       // Konsole sends 0;115;0 - but t_u8 does not actually work, therefore
!       // commented out.
!       // else if (version == 115 && arg[0] == 0 && arg[2] == 0)
!       //     term_props[TPR_UNDERLINE_RGB].tpr_status = TPR_YES;
  
        // GNU screen sends 83;30600;0, 83;40500;0, etc.
        // 30600/40500 is a version number of GNU screen. DA2 support is added
***************
*** 4806,4814 ****
--- 4807,4821 ----
  
        // Unless the underline RGB color is expected to work, disable "t_8u".
        // It does not work for the real Xterm, it resets the background color.
+       // This may cause some flicker.  Alternative would be to set "t_8u"
+       // here if the terminal is expected to support it, but that might
+       // conflict with what was set in the .vimrc.
        if (term_props[TPR_UNDERLINE_RGB].tpr_status != TPR_YES && *T_8U != NUL)
+       {
            set_string_option_direct((char_u *)"t_8u", -1, (char_u *)"",
                                                                  OPT_FREE, 0);
+           redraw_later(CLEAR);
+       }
  
        // Only set 'ttymouse' automatically if it was not set
        // by the user already.
*** ../vim-8.2.4774/src/version.c       2022-04-17 15:06:31.042622659 +0100
--- src/version.c       2022-04-17 17:31:51.849005319 +0100
***************
*** 748,749 ****
--- 748,751 ----
  {   /* Add new patch number below this line */
+ /**/
+     4775,
  /**/

-- 
"How is your new girlfriend?"
"90-60-90 man!"
"What, pale purple?"

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220417163541.51C381C0796%40moolenaar.net.

Raspunde prin e-mail lui