Skip to content

Commit

Permalink
Merge pull request #133 from JaFi-cz/master
Browse files Browse the repository at this point in the history
GetWordAtRowCol fix
  • Loading branch information
pyscripter authored Jan 11, 2022
2 parents eb5bf57 + 2ae21b8 commit d9490d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/SynEdit.pas
Original file line number Diff line number Diff line change
Expand Up @@ -8877,9 +8877,9 @@ function TCustomSynEdit.GetWordAtRowCol(XY: TBufferCoord): string;
begin
Line := Lines[XY.Line - 1];
Len := Length(Line);
if (Len > 0) and InRange(XY.Char, 1, Len + 1) then
Start := XY.Char;
if (Len > 0) and InRange(XY.Char, 1, Len + 1) and IsIdentChar(Line[Start]) then
begin
Start := XY.Char;
while (Start > 1) and IsIdentChar(Line[Start - 1]) do
Dec(Start);

Expand Down

0 comments on commit d9490d3

Please sign in to comment.