]> git.eshelyaron.com Git - emacs.git/commit
Avoid assertion violations in bidi.c
authorEli Zaretskii <eliz@gnu.org>
Tue, 27 Feb 2024 11:12:15 +0000 (13:12 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 3 Mar 2024 17:03:22 +0000 (18:03 +0100)
commite7038010f0e68484c3fee2a16a769f8c9343dea8
treec866a520b38d16e520b86f526e07a4b6d3c473df
parentbae62f54cb60ed6767c608ddc1d2226748d71325
Avoid assertion violations in bidi.c

* src/bidi.c (bidi_resolve_brackets): Move assertion about
'resolved_level' to where it belongs.  This avoids unnecessary
aborts when the character is not a bracket type and doesn't need
BPA resolution.  (Bug#69421)

(cherry picked from commit 383ccf6d51fd7af65dbcc1ce159a03369a48d27f)
src/bidi.c