mirror of https://gitlab.com/basile.b/dexed.git
fix possible range error when renaming an identifier
This commit is contained in:
parent
6d080bbd7a
commit
d3ec00991e
|
@ -1998,6 +1998,8 @@ begin
|
||||||
exit;
|
exit;
|
||||||
p := CaretXY;
|
p := CaretXY;
|
||||||
line := lineText;
|
line := lineText;
|
||||||
|
if (line.length = 1) or (LogicalCaretXY.X > line.length) then
|
||||||
|
exit;
|
||||||
if (CaretX = 1) or not (line[LogicalCaretXY.X] in IdentChars) or
|
if (CaretX = 1) or not (line[LogicalCaretXY.X] in IdentChars) or
|
||||||
not (line[LogicalCaretXY.X-1] in IdentChars) then
|
not (line[LogicalCaretXY.X-1] in IdentChars) then
|
||||||
exit;
|
exit;
|
||||||
|
|
Loading…
Reference in New Issue