Commit 79beb178 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

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.
parent 0074aef2
2011-10-12 Eli Zaretskii <eliz@gnu.org>
* 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 <dmantipov@yandex.ru>
......
......@@ -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)))
......
......@@ -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')))
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment