[vte] Followup on Bug 602596 - Cursor can become invisible
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] Followup on Bug 602596 - Cursor can become invisible
- Date: Thu, 1 Apr 2010 05:35:01 +0000 (UTC)
commit f412a6f73a7b3a432bb88830b63ee25ea648619d
Author: Behdad Esfahbod <behdad behdad org>
Date: Thu Apr 1 01:34:18 2010 -0400
Followup on Bug 602596 - Cursor can become invisible
Fix invisible attribute.
src/vte.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index c6844e9..eddf06b 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -8767,9 +8767,6 @@ vte_terminal_determine_colors(VteTerminal *terminal,
/* Handle invisible, bold, and standout text by adjusting colors. */
if (cell) {
- if (cell->attr.invisible) {
- *fore = *back;
- }
if (cell->attr.bold) {
if (*fore == VTE_DEF_FG) {
*fore = VTE_BOLD_FG;
@@ -8799,6 +8796,10 @@ vte_terminal_determine_colors(VteTerminal *terminal,
*fore = *back;
*back = tmp;
}
+
+ if (cell && cell->attr.invisible) {
+ *fore = *back;
+ }
}
/* Check if a unicode character is actually a graphic character we draw
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]