summaryrefslogtreecommitdiff
path: root/editeng/source/misc/acorrcfg.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-03-10 23:19:18 +0100
committerMichael Stahl <mstahl@redhat.com>2015-03-11 00:18:00 +0100
commit9aae521b451269007f03527c83645b8b935eb419 (patch)
treeb2b03d4fdb3cdfb6d86b5b5fa4cae0d951d3c8b9 /editeng/source/misc/acorrcfg.cxx
parentdf1c65b8fa8f7bb13618226745eaff7a8eeffd14 (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