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:
juha 2017-07-07 17:20:53 +00:00
parent 4ab08920c4
commit 39b48d2cf9

View File

@ -2568,7 +2568,7 @@ begin
if Editor=nil then exit;
Editor.CaretX:=Editor.CaretX-1;
NewLen:=UTF8FindNearestCharStart(PChar(NewPrefix),length(NewPrefix),
length(NewPrefix))-1;
length(NewPrefix)-1);
NewPrefix:=copy(NewPrefix,1,NewLen);
CurrentString:=NewPrefix;
end;