mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-17 19:30:38 -08:00
One more fix of the BPA implementation
* src/bidi.c (bidi_find_bracket_pairs): Disable BPA optimization when there are no strong directional characters inside the bracketed pair. (Bug#54219)
This commit is contained in:
parent
cd51d9c7ab
commit
92e2d19fe7
1 changed files with 1 additions and 0 deletions
|
|
@ -2758,6 +2758,7 @@ bidi_find_bracket_pairs (struct bidi_it *bidi_it)
|
||||||
(which requires the display engine to copy the cache back and
|
(which requires the display engine to copy the cache back and
|
||||||
forth many times). */
|
forth many times). */
|
||||||
if (maxlevel == base_level
|
if (maxlevel == base_level
|
||||||
|
&& (l2r_seen || r2l_seen) /* N0d */
|
||||||
&& ((base_level == 0 && !r2l_seen)
|
&& ((base_level == 0 && !r2l_seen)
|
||||||
|| (base_level == 1 && !l2r_seen)))
|
|| (base_level == 1 && !l2r_seen)))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue