diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-03-10 23:19:18 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-03-11 00:18:00 +0100 |
commit | 9aae521b451269007f03527c83645b8b935eb419 (patch) | |
tree | b2b03d4fdb3cdfb6d86b5b5fa4cae0d951d3c8b9 /editeng/source/misc/acorrcfg.cxx | |
parent | df1c65b8fa8f7bb13618226745eaff7a8eeffd14 (diff) |
i18npool: fix spurious regex ^ matching in TextSearch::searchForward()
Thanks to Eike for finding this:
The anchors ^ and $ now anchor at the selection boundary because the
only text the regex matcher gets passed is the selected text. This in
two paragraphs
aaa bbb aaa bbb
aaa bbb aaa bbb
when the selection spans from the second aaa to the third bbb, for
"^aaa" finds the second aaa, where previously it found the third aaa at
the real paragraph start.
This may not be expected by the user, because the behavior of ^ is
described as "Match at the beginning of a line" (or paragraph in our
case), which the previous implementation did.
(regression from 806ced87cfe3da72df0d8e4faf5b82535fc7d1b7)
Unfortunately it's not obvious how to implement the same in
searchBackward().
Change-Id: I07f7a8476b672d9511fa74ca473c32eea427698f
Diffstat (limited to 'editeng/source/misc/acorrcfg.cxx')
0 files changed, 0 insertions, 0 deletions