Hi, Neil,
Thanks for the explanation! I am trying to identify high-level tasks to improve the current behaviour.
>>>about handling empty matches
Once again: current Scite doesn't find empty matches using ^ $ ^$ . I
did some additional test on the behaviour of many editors and
utilities and compared them to Scite before and after 4.05. All of editors,
plus old Scite (< 4.05), could correctly
find ^ $ ^$ . (Including
Geany, which also uses Scintilla's Reg. Ex engine.)
(Searching for ^$ is important to identify empty lines. The search for ^ and $ allows us to quickly prefix and
suffix all lines in the text. We could do this also using backslash
expressions. But, Reg. Ex is simpler.)
Here we have
another confusing issue. The Replace empty matches using
^ , $ and ^$ works fine! I tested in 5.4.1. Thus, we could replace ^ , $ and ^$ , but we couldn't find
them. The old Scite's behaviour seems more consistent with this. I would
consider restoring the old
behaviour, but you mentioned that "earlier versions of SciTE tried
something like this and it caused worse problems." Could you
remember
these problems?
>>>a flag for not matching the empty string at start
Do you suggest adding similar flags to the engine (RESearch.cxx) and adding flags to Scite to control the behaviour?
>> problem with "Bookmark All
I'll try to suggest a solution for better handling.
Thanks
Yury