[vte/wip/egmont/bidi: 5/7] widget, bidi: Denote the direction in the I-beam cursor
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/egmont/bidi: 5/7] widget, bidi: Denote the direction in the I-beam cursor
- Date: Tue, 4 Jun 2019 12:12:54 +0000 (UTC)
commit efaee7a9967f1a6c15f90071bc2e14ec3e5ec273
Author: Egmont Koblinger <egmont gmail com>
Date: Sat Jun 1 15:55:58 2019 +0200
widget,bidi: Denote the direction in the I-beam cursor
Show the direction of the character underneath if the paragraph contains
a character of foreign direction. Currently for I-beam cursor shape only.
src/vte.cc | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/vte.cc b/src/vte.cc
index 3a2dfd3e..3f58ae86 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -9469,6 +9469,12 @@ Terminal::paint_cursor()
x, y + m_char_padding.top, stem_width, m_char_ascent +
m_char_descent,
&bg, VTE_DRAW_OPAQUE);
+ if (focus && row_data && bidirow->has_foreign())
+ _vte_draw_fill_rectangle(m_draw,
+ bidirow->vis_is_rtl(viscol) ? x - stem_width : x +
stem_width, y + m_char_padding.top,
+ stem_width, stem_width,
+ &bg, VTE_DRAW_OPAQUE);
+
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]