From 4267b846de3fe7db655da7a2e2981251e7ec51cc Mon Sep 17 00:00:00 2001 From: mattias Date: Tue, 9 Sep 2008 21:20:39 +0000 Subject: [PATCH] IDE: fixed identifier completion cursor for Canvas.Colors, bug #12108 git-svn-id: trunk@16510 - --- ide/sourceeditprocs.pas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ide/sourceeditprocs.pas b/ide/sourceeditprocs.pas index cc50d11dc9..1290c85b83 100644 --- a/ide/sourceeditprocs.pas +++ b/ide/sourceeditprocs.pas @@ -518,7 +518,8 @@ begin if CursorAtEnd then ; // add assignment operator := - if (ilcfStartIsLValue in IdentList.ContextFlags) + if (CursorToLeft=0) + and (ilcfStartIsLValue in IdentList.ContextFlags) and (not IdentItem.HasChilds) and (not IdentList.StartUpAtomBehindIs(':=')) and (IdentItem.CanBeAssigned)