]> git.eshelyaron.com Git - emacs.git/commit
Fix bug #9470 with slow redisplay in huge single-paragraph buffers.
authorEli Zaretskii <eliz@gnu.org>
Sat, 17 Sep 2011 15:18:56 +0000 (18:18 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 17 Sep 2011 15:18:56 +0000 (18:18 +0300)
commit1137e8b8eb6fbae76880b814d516377de30eddd3
tree51e82ce03063d5940d0e9e27fff0f10f2587634b
parent8d5ed89901195abc4a5d660371ea26e849292ea6
Fix bug #9470 with slow redisplay in huge single-paragraph buffers.

 src/bidi.c (MAX_PARAGRAPH_SEARCH): New macro.
 (bidi_find_paragraph_start): Search back for paragraph beginning
 at most MAX_PARAGRAPH_SEARCH lines; if not found, return BEGV_BYTE.
 (bidi_move_to_visually_next): Only trigger paragraph-related
 computations when the last character is a newline or at EOB, not
 just any NEUTRAL_B.
 src/xdisp.c (reseat_at_next_visible_line_start): Keep information
 about the current paragraph and restore it after the call to
 reseat.
src/ChangeLog
src/bidi.c
src/xdisp.c