You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Discovered while trying to develop an X11 application- the Enter key sent a "\r" instead of a "\n", which my prototype application (not using Editor) simply appended to the end of the rendered buffer, causing a crash when the next character was appended.
The cause seems to be that \r is treated as a paragraph separator by unicode-bidi, but not by the lines iterator from std uses to do paragraph separator in buffer.set_text(), so when the paragraph is sent to be shaped it's split into two paragraphs and triggers the assert.
The text was updated successfully, but these errors were encountered:
MRE:
Discovered while trying to develop an X11 application- the Enter key sent a "\r" instead of a "\n", which my prototype application (not using
Editor
) simply appended to the end of the rendered buffer, causing a crash when the next character was appended.The cause seems to be that
\r
is treated as a paragraph separator byunicode-bidi
, but not by thelines
iterator from std uses to do paragraph separator inbuffer.set_text()
, so when the paragraph is sent to be shaped it's split into two paragraphs and triggers the assert.The text was updated successfully, but these errors were encountered: