[vte/vte-0-54] widget: Avoid unnecessary invalidations at hyperlinks



commit a39489aa11044b572c6bc5141770a989881c3686
Author: Egmont Koblinger <egmont gmail com>
Date:   Wed Sep 12 13:04:28 2018 +0200

    widget: Avoid unnecessary invalidations at hyperlinks
    
    https://gitlab.gnome.org/GNOME/vte/issues/44
    (cherry picked from commit bca1cd274c1ffafea98f5b9e586b9069a781a318)

 src/vte.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 9c132a68..90a0f461 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -5596,7 +5596,8 @@ Terminal::hyperlink_hilite_update()
 
         /* Underlining hyperlinks has precedence over regex matches. So when the hovered hyperlink changes,
          * the regex match might need to become or stop being underlined. */
-        invalidate_match_span();
+        if (m_match != nullptr)
+                invalidate_match_span();
 
         apply_mouse_cursor();
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]