[vte/wip/egmont/bidi: 53/75] fix display after rtl double wide char



commit 4da3e7af10cd2469bb35353c681868ccac169480
Author: Egmont Koblinger <egmont gmail com>
Date:   Tue Aug 28 00:12:46 2018 +0200

    fix display after rtl double wide char

 doc/bidi.txt | 8 ++++++++
 src/vte.cc   | 3 ++-
 2 files changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/doc/bidi.txt b/doc/bidi.txt
index 51b3b6ff..eb8ff2a7 100644
--- a/doc/bidi.txt
+++ b/doc/bidi.txt
@@ -36,6 +36,10 @@ Boxes should all show up nicely.
 oi7 incididunt ut labore et dolore magna aliqua.
 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor שָׁלוֹם incididunt ut 
labore et dolore magna aliqua.
 
+Double wide
+a<z  n>x
+a<z  א<ת
+
 Box
 ┏━┓    ╔═╗    ┌─┐    ╭─╮
 ┗━┛   a╚═╝b  א┘─└ב   ╰─╯
@@ -68,6 +72,10 @@ Boxes should all show up nicely.
                                 .incididunt ut labore et dolore magna aliqua oi7
 [3 SLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor שָׁלוֹם incididunt 
ut labore et dolore magna aliqua.[0 S
 
+Double wide
+                                                                      a<z  n>x
+[3 Sא<ת  a<z[0 S
+
 Box[3 S
 ┓━┏    ╗═╔    ┐─┌    ╮─╭
 ┛━┗   a╚═╝b  א┘─└ב   ╯─╰[0 S
diff --git a/src/vte.cc b/src/vte.cc
index a029822a..0cb50102 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -9204,7 +9204,8 @@ Terminal::draw_rows(VteScreen *screen_,
                         items[item_count].y = y;
                         items[item_count].mirror = bidimap[col].vis_rtl;
                         items[item_count].box_mirror = !!(row_data->attr.bidi_flags & VTE_BIDI_BOX_MIRROR);
-                        col += items[item_count++].columns;
+                        item_count++;
+                        col++;
                 }
 
                 /* Draw the cells. */


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