[vte/wip/egmont/bidi: 25/84] rewrap maintains bidi flags



commit d5feedeb8bac4013a6bc7b14584cd1f0647c09dc
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 e35e7f0b..15202f00 100644
--- a/src/ring.cc
+++ b/src/ring.cc
@@ -1181,6 +1181,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 paragraph_start_row = old_row_index - 1;
                gsize paragraph_end_row;  /* points to beyond the end */
                gsize text_offset = paragraph_start_text_offset;
@@ -1228,6 +1229,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]