I have found a bug/misbehavior on Lyx 2.4.4(Flat-pack) and 2.4.3 on Linux mint 
22.1. I think the bug is cross-platform.

Bug 1:
The bug relies on the advanced find and replace. Both in math mode and regular 
text, but only when using regular expressions. When searching for an 
expression, Exp1, if that same expression is twice on the same line:

- when using forward search: it selects/finds the entire text between the first 
and last places where Exp1 can be found.

- when using backward search: finds correctly all places where Exp1 can be 
found + selects the entire text between each Exp1.

Al tough it is still possible to use the replace option using the backward 
search, it is useless in the forward search mode since it deletes text. The 
issue gets funnier when Exp1 is 4 times in the same line.

Bug 1.1:
The behavior is different when using backwards search and forward search.

Bug 1.2:
It seems that when the Exp1 is in math-mode, it detects the expression twice, 
first it finds correctly the matching expression, then finds/selects the entire 
math-mode.

I might be willing to report the bug on the website, but as claimed it is not 
possible to register there due to spam. Thus i reported here in case it is 
sufficient. In any case I'll be glad to receive a link for registration and 
specify the bug on the website (https://www.lyx.org/trac/wiki/BugTrackerHome)

I attach a small file to reproduce the bug.

Thanks for your attention.

Attachment: Find and Replace Lyx Bug.lyx
Description: application/lyx

-- 
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel
  • Bug rsg1rsg2 via lyx-devel

Reply via email to