mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 19:59:17 +02:00
IDE: Fix left/right arrow key behavior in identifier completion. Issue #32117, patch from Anton.
git-svn-id: trunk@55460 -
This commit is contained in:
parent
4ab08920c4
commit
39b48d2cf9
@ -2568,7 +2568,7 @@ begin
|
|||||||
if Editor=nil then exit;
|
if Editor=nil then exit;
|
||||||
Editor.CaretX:=Editor.CaretX-1;
|
Editor.CaretX:=Editor.CaretX-1;
|
||||||
NewLen:=UTF8FindNearestCharStart(PChar(NewPrefix),length(NewPrefix),
|
NewLen:=UTF8FindNearestCharStart(PChar(NewPrefix),length(NewPrefix),
|
||||||
length(NewPrefix))-1;
|
length(NewPrefix)-1);
|
||||||
NewPrefix:=copy(NewPrefix,1,NewLen);
|
NewPrefix:=copy(NewPrefix,1,NewLen);
|
||||||
CurrentString:=NewPrefix;
|
CurrentString:=NewPrefix;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user