mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-08 20:24:27 +02:00
Backspace Tab character correctly.
This commit is contained in:
parent
f259ca5e40
commit
ca0dad1ce1
@ -4906,8 +4906,8 @@ begin
|
||||
CP:=CurPos.X-1;
|
||||
S:=GetLineText(CurPos.Y);
|
||||
CI:=LinePosToCharIdx(CurPos.Y,CP);
|
||||
if (s[ci]=TAB) and (CharIdxToLinePos(Curpos.y,ci)=cp) then
|
||||
CP:=CharIdxToLinePos(CurPos.Y,CI-1)+1;
|
||||
if (s[ci]=TAB) {and (CharIdxToLinePos(Curpos.y,ci)=cp)} then
|
||||
CP:=CharIdxToLinePos(CurPos.Y,CI);
|
||||
if IsFlagSet(efBackspaceUnindents) then
|
||||
begin
|
||||
S:=GetDisplayText(CurPos.Y);
|
||||
|
Loading…
Reference in New Issue
Block a user