[vte/wip/egmont/bidi: 23/97] rewrap maintains bidi flags



commit abb634fa394083926711f44e6d164df92ef5f90e
Author: Egmont Koblinger <egmont gmail com>
Date:   Mon Aug 20 00:28:35 2018 +0200

    rewrap maintains bidi flags

 src/ring.cc | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/ring.cc b/src/ring.cc
index e03d2de5..3d607f43 100644
--- a/src/ring.cc
+++ b/src/ring.cc
@@ -1185,6 +1185,7 @@ Ring::rewrap(column_t columns,
                /* Find the boundaries of the next paragraph */
                gboolean prev_record_was_soft_wrapped = FALSE;
                gboolean paragraph_is_ascii = TRUE;
+               guint8 paragraph_bidi_flags = old_record.bidi_flags;
                gsize text_offset = paragraph_start_text_offset;
                RowRecord new_record;
                column_t col = 0;
@@ -1232,6 +1233,7 @@ Ring::rewrap(column_t columns,
                new_record.text_start_offset = text_offset;
                new_record.attr_start_offset = attr_offset;
                new_record.is_ascii = paragraph_is_ascii;
+               new_record.bidi_flags = paragraph_bidi_flags;
 
                while (paragraph_len > 0) {
                        /* Wrap one continuous run of identical attributes within the paragraph. */


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