[vte/wip/egmont/bidi: 21/21] soft_wrapped opti
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [vte/wip/egmont/bidi: 21/21] soft_wrapped opti
- Date: Sat,  1 Jun 2019 13:00:22 +0000 (UTC)
commit 1443647605a0a4750ec8e9b610fda0b67a700c04
Author: Egmont Koblinger <egmont gmail com>
Date:   Wed May 29 12:14:29 2019 +0200
    soft_wrapped opti
 src/ringview.cc | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/src/ringview.cc b/src/ringview.cc
index 7cb69687..26d8fcf5 100644
--- a/src/ringview.cc
+++ b/src/ringview.cc
@@ -191,10 +191,7 @@ void RingView::update()
 
         int i = VTE_RINGVIEW_PARAGRAPH_LENGTH_MAX;
         while (i--) {
-                // FIXME this could be much cheaper, we don't need to read the actual rows (text_stream),
-                // we only need the soft_wrapped flag which is stored in row_stream. Needs method in ring.
-                row_data = m_ring->index_safe(row - 1);
-                if (row_data == nullptr || !row_data->attr.soft_wrapped)
+                if (!m_ring->is_soft_wrapped(row - 1))
                         break;
                 row--;
         }
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]