Kaydet (Commit) 47d1cb09 authored tarafından Laurent Godard's avatar Laurent Godard Kaydeden (comit) Caolán McNamara

avoid autocorrection misreplacing

takes the last token in case of chained "." instead of the first one

to avoid

aa.b.
autocorrects (wrongly) to
aaaa.

Change-Id: Ibca68850282a0d3aec67ca518bdcbf1da676e155
Reviewed-on: https://gerrit.libreoffice.org/17858Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 930c7fb4
......@@ -861,7 +861,7 @@ void EditorWindow::HandleCodeCompletion()
if( aVect.empty() )//nothing to do
return;
OUString sBaseName = aVect[0];//variable name
OUString sBaseName = aVect[aVect.size()-1];//variable name
OUString sVarType = aCodeCompleteCache.GetVarType( sBaseName );
if( !sVarType.isEmpty() && CodeCompleteOptions::IsAutoCorrectOn() )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment