aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2011-07-23 17:34:51 +0300
committerEli Zaretskii2011-07-23 17:34:51 +0300
commit8719d1dcad924e8b00b8610cbb531fcef5fca0b5 (patch)
tree50dfb85bbe8dce39285a81de9bd1ecd2445aa51a /src
parentc1734fbd6fa365e362c600b7b94c40b13401c255 (diff)
downloademacs-8719d1dcad924e8b00b8610cbb531fcef5fca0b5.tar.gz
emacs-8719d1dcad924e8b00b8610cbb531fcef5fca0b5.zip
src/bidi.c: Backport from trunk a bugfix for bidi_paragraph_init at EOB.
Diffstat (limited to 'src')
-rw-r--r--src/bidi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bidi.c b/src/bidi.c
index 3bee2009a0e..77043d9236f 100644
--- a/src/bidi.c
+++ b/src/bidi.c
@@ -1134,10 +1134,6 @@ bidi_paragraph_init (bidi_dir_t dir, struct bidi_it *bidi_it, int no_default_p)
1134 || type == LRE || type == LRO)); 1134 || type == LRE || type == LRO));
1135 type = bidi_get_type (ch, NEUTRAL_DIR)) 1135 type = bidi_get_type (ch, NEUTRAL_DIR))
1136 { 1136 {
1137 if (!string_p
1138 && type == NEUTRAL_B
1139 && bidi_at_paragraph_end (pos, bytepos) >= -1)
1140 break;
1141 if (pos >= end) 1137 if (pos >= end)
1142 { 1138 {
1143 /* Pretend there's a paragraph separator at end of 1139 /* Pretend there's a paragraph separator at end of
@@ -1145,6 +1141,10 @@ bidi_paragraph_init (bidi_dir_t dir, struct bidi_it *bidi_it, int no_default_p)
1145 type = NEUTRAL_B; 1141 type = NEUTRAL_B;
1146 break; 1142 break;
1147 } 1143 }
1144 if (!string_p
1145 && type == NEUTRAL_B
1146 && bidi_at_paragraph_end (pos, bytepos) >= -1)
1147 break;
1148 /* Fetch next character and advance to get past it. */ 1148 /* Fetch next character and advance to get past it. */
1149 ch = bidi_fetch_char (bytepos, pos, &disp_pos, &bidi_it->string, 1149 ch = bidi_fetch_char (bytepos, pos, &disp_pos, &bidi_it->string,
1150 bidi_it->frame_window_p, &ch_len, &nchars); 1150 bidi_it->frame_window_p, &ch_len, &nchars);