[vte/wip/sixels: 81/111] terminal: Always draw ' ' and '\t' spaces, since they can erase images
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/sixels: 81/111] terminal: Always draw ' ' and '\t' spaces, since they can erase images
- Date: Sat, 8 Aug 2020 18:43:02 +0000 (UTC)
commit e3591c16b094d59a66516cf722dc3027293eaf4b
Author: Hans Petter Jansson <hpj cl no>
Date: Sat Aug 8 20:42:49 2020 +0200
terminal: Always draw ' ' and '\t' spaces, since they can erase images
src/vte.cc | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index d4830249..9c38e440 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -8865,15 +8865,10 @@ Terminal::draw_rows(VteScreen *screen_,
nhilite = (nhyperlink && cell->attr.hyperlink_idx == m_hyperlink_hover_idx) ||
(!nhyperlink && regex_match_has_current() && m_match_span.contains(row,
lcol));
if (cell->c == 0 ||
- ((cell->c == ' ' || cell->c == '\t') && // FIXME '\t' is newly added now,
double check
- cell->attr.has_none(VTE_ATTR_UNDERLINE_MASK |
- VTE_ATTR_STRIKETHROUGH_MASK |
- VTE_ATTR_OVERLINE_MASK) &&
- !nhyperlink &&
- !nhilite) ||
cell->attr.fragment() ||
cell->attr.invisible()) {
- /* Skip empty or fragment cell. */
+ /* Skip empty or fragment cell, but erase on ' ' and '\t', since
+ * it may be overwriting an image. */
lcol++;
continue;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]