• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Revision001c228efdab705fb82a4c5defe2f3e3803b8360 (tree)
Time2022-10-02 05:30:03
AuthorBram Moolenaar <Bram@vim....>
CommiterBram Moolenaar

Log Message

patch 9.0.0636: underline color may not work in some terminals

Commit: https://github.com/vim/vim/commit/b393275ae91eb9a8df7a9a611bd75590db9b22db
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 1 21:22:17 2022 +0100

patch 9.0.0636: underline color may not work in some terminals
Problem: Underline color does not work in terminals that don't send a
termresponse.
Solution: Do output t_8u if it was set explicitly. (closes #11253)

Change Summary

Incremental Difference

diff -r 6194c0ba3526 -r 001c228efdab src/term.c
--- a/src/term.c Sat Oct 01 21:30:06 2022 +0200
+++ b/src/term.c Sat Oct 01 22:30:03 2022 +0200
@@ -153,7 +153,7 @@
153153
154154 // The t_8u code may default to a value but get reset when the term response is
155155 // received. To avoid redrawing too often, only redraw when t_8u is not reset
156-// and it was supposed to be written.
156+// and it was supposed to be written. Unless t_8u was set explicitly.
157157 // FALSE -> don't output t_8u yet
158158 // MAYBE -> tried outputing t_8u while FALSE
159159 // OK -> can write t_8u
@@ -3011,7 +3011,10 @@
30113011 term_ul_rgb_color(guicolor_T rgb)
30123012 {
30133013 # ifdef FEAT_TERMRESPONSE
3014- if (write_t_8u_state != OK)
3014+ // If the user explicitly sets t_8u then use it. Otherwise wait for
3015+ // termresponse to be received, which is when t_8u would be set and a
3016+ // redraw is needed if it was used.
3017+ if (!option_was_set((char_u *)"t_8u") && write_t_8u_state != OK)
30153018 write_t_8u_state = MAYBE;
30163019 else
30173020 # endif
diff -r 6194c0ba3526 -r 001c228efdab src/version.c
--- a/src/version.c Sat Oct 01 21:30:06 2022 +0200
+++ b/src/version.c Sat Oct 01 22:30:03 2022 +0200
@@ -700,6 +700,8 @@
700700 static int included_patches[] =
701701 { /* Add new patch number below this line */
702702 /**/
703+ 636,
704+/**/
703705 635,
704706 /**/
705707 634,
Show on old repository browser