]> git.eshelyaron.com Git - emacs.git/commit
Speed up display of RTL text with many character compositions
authorEli Zaretskii <eliz@gnu.org>
Thu, 21 Mar 2024 08:25:56 +0000 (10:25 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 24 Mar 2024 14:14:19 +0000 (15:14 +0100)
commit69a0a341ffcec70b8e75e01b6ba48c384f1609de
tree18b14e74be45b25010b63a59e4a45f4294791915
parent7b31eb2bbe1a8ff973b7a0711c40057d9b08fc50
Speed up display of RTL text with many character compositions

* src/bidi.c (bidi_level_start): New function.
* src/dispextern.h (bidi_level_start): Add prototype.
* src/xdisp.c (compute_stop_pos, set_iterator_to_next)
(get_visually_first_element, next_element_from_buffer): Call
'bidi_level_start' when looking for composed characters backwards,
to set limit of searching back, instead of looking all the way to
BOB.  (Bug#69385)

(cherry picked from commit fe24a8c3c091c1e051fe6a8c1ec4fd30ca052ca7)
src/bidi.c
src/dispextern.h
src/xdisp.c