summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/autocdlg.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx
index 87e803f677b4..393f9f79d872 100644
--- a/cui/source/tabpages/autocdlg.cxx
+++ b/cui/source/tabpages/autocdlg.cxx
@@ -1145,7 +1145,9 @@ IMPL_LINK(OfaAutocorrReplacePage, ModifyHdl, weld::Entry&, rEdt, void)
else
{
aTestStr = pCharClass->lowercase( aTestStr );
- if( aTestStr.startsWith(aWordStr) && !bTmpSelEntry )
+ if( !bTmpSelEntry && ( aTestStr.startsWith(aWordStr)
+ // find also with ".*" and between :colons:
+ || aTestStr.replaceAll(".*","").replaceAll(":", "").startsWith(aWordStr) ) )
{
m_xReplaceTLB->scroll_to_row(rIter);
bTmpSelEntry = true;