[vte/wip/egmont/bidi: 53/91] ibeam on right
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/egmont/bidi: 53/91] ibeam on right
- Date: Tue, 5 Feb 2019 19:20:28 +0000 (UTC)
commit c7b0697c91496ebb75b899129ddf6e63c65a98ed
Author: Egmont Koblinger <egmont gmail com>
Date: Wed Aug 29 01:05:47 2018 +0200
ibeam on right
src/vte.cc | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/vte.cc b/src/vte.cc
index 3ee3022d..af27ccf6 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -9228,6 +9228,9 @@ Terminal::paint_cursor()
stem_width = (int) (((float) (m_char_ascent + m_char_descent)) *
m_cursor_aspect_ratio + 0.5);
stem_width = CLAMP (stem_width, VTE_LINE_WIDTH, m_cell_width);
+ if (row_data && (row_data->attr.bidi_flags & VTE_BIDI_RTL))
+ x += m_cell_width - stem_width;
+
_vte_draw_fill_rectangle(m_draw,
x, y + m_char_padding.top, stem_width, m_char_ascent +
m_char_descent,
&bg, VTE_DRAW_OPAQUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]