[vte] widget: Increase minimum width to 2 cells plus padding



commit afe6f05571c44ef2d75e8f8dba8e2b16344b7e9f
Author: Egmont Koblinger <egmont gmail com>
Date:   Thu Jun 6 23:04:26 2019 +0200

    widget: Increase minimum width to 2 cells plus padding
    
    https://gitlab.gnome.org/GNOME/vte/issues/134

 src/vte.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index fd74e314..ee1c673f 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -7900,7 +7900,7 @@ Terminal::widget_get_preferred_width(int *minimum_width,
 
         refresh_size();
 
-       *minimum_width = m_cell_width * 1;
+       *minimum_width = m_cell_width * 2;  /* have room for a CJK or emoji */
         *natural_width = m_cell_width * m_column_count;
 
        *minimum_width += m_padding.left +


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