aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii <[email protected]>2011-10-12 17:12:52 +0200
committerEli Zaretskii <[email protected]>2011-10-12 17:12:52 +0200
commit79beb1785aac3f8326f58710462e4b6be7f0449a (patch)
tree34104af74f3ff651b26b789992c4e6034da44e65 /src
parent0074aef2275e06a767e75cc1b87d22cd7e47cd36 (diff)
Remove incorrect comments about U+2028 LS character.
See http://www.unicode.org/mail-arch/unicode-ml/y2011-m10/0048.html for more details. src/bidi.c (bidi_level_of_next_char): src/xdisp.c (get_visually_first_element): Remove old incorrect comments regarding the Unicode Line Separator character.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/bidi.c3
-rw-r--r--src/xdisp.c1
3 files changed, 5 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 3c10136596..0d1faa3ba2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,9 @@
2011-10-12 Eli Zaretskii <[email protected]>
+ * bidi.c (bidi_level_of_next_char):
+ * xdisp.c (get_visually_first_element): Remove old incorrect
+ comments regarding the Unicode Line Separator character.
+
* bidi.c (bidi_init_it): Initialize paragraph_dir to NEUTRAL_DIR.
2011-10-12 Dmitry Antipov <[email protected]>
diff --git a/src/bidi.c b/src/bidi.c
index 2c312b14a1..d6be41f47a 100644
--- a/src/bidi.c
+++ b/src/bidi.c
@@ -2128,7 +2128,7 @@ bidi_level_of_next_char (struct bidi_it *bidi_it)
do {
ch = bidi_fetch_char (bpos += clen, cpos += nc, &disp_pos, &dpp, &bs,
fwp, &clen, &nc);
- if (ch == '\n' || ch == BIDI_EOB /* || ch == LINESEP_CHAR */)
+ if (ch == '\n' || ch == BIDI_EOB)
chtype = NEUTRAL_B;
else
chtype = bidi_get_type (ch, NEUTRAL_DIR);
@@ -2178,7 +2178,6 @@ bidi_level_of_next_char (struct bidi_it *bidi_it)
else if (bidi_it->orig_type == NEUTRAL_B /* L1 */
|| bidi_it->orig_type == NEUTRAL_S
|| bidi_it->ch == '\n' || bidi_it->ch == BIDI_EOB
- /* || bidi_it->ch == LINESEP_CHAR */
|| (bidi_it->orig_type == NEUTRAL_WS
&& (bidi_it->next_for_ws.type == NEUTRAL_B
|| bidi_it->next_for_ws.type == NEUTRAL_S)))
diff --git a/src/xdisp.c b/src/xdisp.c
index 86098553e1..b44c2fc765 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -7148,7 +7148,6 @@ get_visually_first_element (struct it *it)
}
else if (it->bidi_it.charpos == bob
|| (!string_p
- /* FIXME: Should support all Unicode line separators. */
&& (FETCH_CHAR (it->bidi_it.bytepos - 1) == '\n'
|| FETCH_CHAR (it->bidi_it.bytepos) == '\n')))
{