mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 10:48:12 +02:00
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:
parent
8ed74db2d3
commit
2e9f912d48
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user