mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 01:48:00 +02:00
Fix for backspace in empty line. Textmode IDE
This commit is contained in:
parent
a8520ad03e
commit
e221096a02
@ -5064,8 +5064,9 @@ 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);
|
||||
if (ci>0) and (ci<=length(S)) then
|
||||
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