[vte/wip/egmont/bidi: 24/75] rewrap maintains bidi flags
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/egmont/bidi: 24/75] rewrap maintains bidi flags
- Date: Wed, 19 Sep 2018 08:15:15 +0000 (UTC)
commit 39a9a1f9d299c6b8beaeb42a4364777e2125b2f5
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]