[vte/wip/egmont/bidi: 16/107] rewrap maintains bidi flags



commit 3655c70f610a6e3bcdc564891bb28a4e4ecb6a85
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]