Revert incorrect r56398 #5071092ea6 "SynEdit: Enable operations for an identifier also when caret is at its end."

git-svn-id: branches/fixes_1_8@56742 -
This commit is contained in:
mattias 2017-12-14 18:13:06 +00:00
parent 8ed74db2d3
commit 2e9f912d48

View File

@ -8945,7 +8945,7 @@ begin
while not Highlighter.GetEol do begin
Start := Highlighter.GetTokenPos + 1;
Token := Highlighter.GetToken;
if (PosX >= Start) and (PosX <= Start + Length(Token)) then begin
if (PosX >= Start) and (PosX < Start + Length(Token)) then begin
Attri := Highlighter.GetTokenAttribute;
TokenType := Highlighter.GetTokenKind;
exit(True);
@ -8990,7 +8990,7 @@ begin
//TokenType := Highlighter.GetTokenKind;
Attri := Highlighter.GetTokenAttribute;
//DebugLn([' TCustomSynEdit.CaretAtIdentOrString: Start=', Start, ', Token=', Token]);
if (PosX >= Start) and (PosX <= Start + Length(Token)) then
if (PosX >= Start) and (PosX < Start + Length(Token)) then
begin
AtIdent := Attri = Highlighter.IdentifierAttribute;
NearString := (Attri = Highlighter.StringAttribute)