File: emulation-Fix-OSC-111.patch

package info (click to toggle)
vte2.91 0.80.1-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,924 kB
  • sloc: cpp: 49,822; ansic: 8,221; python: 2,024; sh: 592; makefile: 68; xml: 26
file content (30 lines) | stat: -rw-r--r-- 1,074 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: Christian Persch <chpe@src.gnome.org>
Date: Sun, 13 Apr 2025 09:54:39 +0200
Subject: emulation: Fix OSC 111

Fixes a regression from commit 9d4e38343c93bc0866997dfe4ebdc12d4e1ae7a8

Thanks to Egmont Koblinger for the git bisect and finding the bug.

Fixes: https://gitlab.gnome.org/GNOME/vte/-/issues/2876
(cherry picked from commit 39950ac5a0f32e431c53f9c8f43c818fd8c988a4)
(cherry picked from commit a33d089c1d2b669ee932df9a8b29236934102aad)

Origin: upstream vte-0-80 branch after 0.80.1
---
 src/vteseq.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/vteseq.cc b/src/vteseq.cc
index 174298e..5bdec69 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -7663,7 +7663,7 @@ Terminal::OSC(vte::parser::Sequence const& seq)
                 break;
 
         case VTE_OSC_XTERM_RESET_COLOR_TEXT_BG:
-                reset_color(ColorPaletteIndex::default_fg(), ColorSource::Escape);
+                reset_color(ColorPaletteIndex::default_bg(), ColorSource::Escape);
                 break;
 
         case VTE_OSC_XTERM_RESET_COLOR_CURSOR_BG: