projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd51d9c
)
One more fix of the BPA implementation
author
Eli Zaretskii
<eliz@gnu.org>
Thu, 3 Mar 2022 13:53:04 +0000
(15:53 +0200)
committer
Eli Zaretskii
<eliz@gnu.org>
Thu, 3 Mar 2022 13:53:04 +0000
(15:53 +0200)
* src/bidi.c (bidi_find_bracket_pairs): Disable BPA optimization
when there are no strong directional characters inside the
bracketed pair. (Bug#54219)
src/bidi.c
patch
|
blob
|
history
diff --git
a/src/bidi.c
b/src/bidi.c
index 5f47d9e9a7cc129421fbbeb75be0cd347f8f28fa..a548960048a04412e75e72b485fe36bfb32de780 100644
(file)
--- a/
src/bidi.c
+++ b/
src/bidi.c
@@
-2758,6
+2758,7
@@
bidi_find_bracket_pairs (struct bidi_it *bidi_it)
(which requires the display engine to copy the cache back and
forth many times). */
if (maxlevel == base_level
+ && (l2r_seen || r2l_seen) /* N0d */
&& ((base_level == 0 && !r2l_seen)
|| (base_level == 1 && !l2r_seen)))
{