[vte/vte-0-66] widget: Adjust preedit position to GtkEntry



commit 3601d2dfae082d54ab47a50d0738cbb6b159c803
Author: Takao Fujiwara <tfujiwar redhat com>
Date:   Sat Aug 28 22:12:59 2021 +0200

    widget: Adjust preedit position to GtkEntry
    
    Fixes: https://gitlab.gnome.org/GNOME/vte/-/issues/339
    (cherry picked from commit 8620b577303e60ef78efd6b66d9c79dcee579e39)

 src/vte.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 5eb051ce..ec330490 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -4364,7 +4364,7 @@ Terminal::im_update_cursor()
 
         cairo_rectangle_int_t rect;
         rect.x = m_screen->cursor.col * m_cell_width + m_padding.left +
-                 get_preedit_width(false) * m_cell_width;
+                 get_preedit_width(true) * m_cell_width;
         rect.width = m_cell_width; // FIXMEchpe: if columns > 1 ?
         rect.y = row_to_pixel(m_screen->cursor.row) + m_padding.top;
         rect.height = m_cell_height;


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