diff options
author | Egmont Koblinger <egmont@gmail.com> | 2017-04-25 01:11:10 +0200 |
---|---|---|
committer | Egmont Koblinger <egmont@gmail.com> | 2017-04-25 01:11:10 +0200 |
commit | 83674b1b09d0ee695d0577e86849d42f82ab5942 (patch) | |
tree | 8b0e5c5bf2a76fc192dc6c45f4bb2e1536513608 /src/ring.cc | |
parent | ca7f577a8ff92804d087145a1efad3fb6be2fefc (diff) | |
download | vte-83674b1b09d0ee695d0577e86849d42f82ab5942.tar.gz |
ring: Invert colors for the stream's cells if debugging the ring
If debugging the ring (or soon the hyperlink), make cells that are already written
to the stream appear with reverse colors. This is so that the boundary is more
prominent because this boundary is a potential source of problems.
Diffstat (limited to 'src/ring.cc')
-rw-r--r-- | src/ring.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ring.cc b/src/ring.cc index 36d82e12..1243f625 100644 --- a/src/ring.cc +++ b/src/ring.cc @@ -256,6 +256,12 @@ _vte_ring_thaw_row (VteRing *ring, gulong position, VteRowData *row, gboolean do } cell.attr = attr; + _VTE_DEBUG_IF(VTE_DEBUG_RING) { + /* Debug: Reverse the colors for the stream's contents. */ + if (!do_truncate) { + cell.attr.reverse = !cell.attr.reverse; + } + } cell.c = g_utf8_get_char (p); q = g_utf8_next_char (p); |