On 2022-07-30 12:52 am, samarutuk via bug-lilypond wrote:
I have to correct myself. "Find and Replace" works for some LilyPond
files, which is absolutely strange, and it shows the same behavior
under Frescobaldi (3.1.3) for macOS as it does under Windows 10
(3.1.3+3.2).
I will attach an example file. If you want to replace there e.g.
"\breathe", it is marked wrong and the expression is not replaced via
the "Replace" button. The "\mm" above can be replaced, which makes the
whole thing even stranger.
I think it has something to do with the \paper block, if I remove it,
"Find and Replace" works. As I said, this was not a problem before. 
Actually, search+replace should work with any "text" I place in the
code window, and the text should not interfere with the "search and
replace" feature per se, right?

The presence of the 🙰 (U+1F670) character in a comment in the \paper block is the problem. Frescobaldi is not handling Unicode surrogate pairs properly, so there is an off-by-one error when counting characters.


-- Aaron Hill

_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to