]> git.eshelyaron.com Git - emacs.git/commit
Protect bidi cache from inadvertent resets
authorEli Zaretskii <eliz@gnu.org>
Sun, 31 May 2020 14:34:09 +0000 (17:34 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 31 May 2020 14:34:09 +0000 (17:34 +0300)
commitdc4db3ef09dd5851c48421757a5b5e0f439a143e
treeb78ee47bf2365b364669d121319c0771bf2824a0
parentabe7c22da96694ced1bc80ec7eb9eb8a662a568b
Protect bidi cache from inadvertent resets

* src/xdisp.c (Fline_pixel_height, Fmove_point_visually): Save and
restore the bidi cache, to avoid inadvertently resetting it by
starting a new iteration through buffer text.  This could cause
trouble if these functions are called during a redisplay cycle,
especially while we were processing RTL text.
src/xdisp.c