summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2019-10-07 17:46:36 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2019-10-09 10:15:39 +0200
commitbfd4dd2c2cc3dfff5a5d3a32a5c9c4edf975f484 (patch)
treeb724dd2658d2d4c4624f4b261f451d50195c208f /solenv
parent2a3b9af83b3ab2891d8d2257bf11e34f8f62e32b (diff)
tdf#128009: Allow spaces in AutoText suggestions
Currently autotext entries with long names starting with spaces, or containing spaces after first or second character, would never be suggested when SvxAutoCorrCfg::IsAutoTextTip() gives true (set in Tools -> AutoCorrect -> [x] Display remainder of name as suggestion while typing), because only a single word no less than 3 chars long left to cursor is considered a candidate for the name matching. This change allows to consider multiple chunks of text left to the cursor as the candidates for name matching. The chunks are 3-9 characters long, may start only between words, and have spaces, including leading. Thus, AutoText entries with long names like " Dr Foo" will now be suggested for an entry like "lorem dr f". Change-Id: If91c957341a4f4b281acb0e4ada558706ea2f8c1 Reviewed-on: https://gerrit.libreoffice.org/80392 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/80495 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'solenv')
0 files changed, 0 insertions, 0 deletions