[vte] widget: Adjust preedit position to GtkEntry
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Adjust preedit position to GtkEntry
- Date: Sat, 28 Aug 2021 20:13:16 +0000 (UTC)
commit 8620b577303e60ef78efd6b66d9c79dcee579e39
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
src/vte.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index d04671e4..e6af1e75 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -4439,7 +4439,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]