SynEdit: Backspace would not work with real Tabs at the end of line (last 2 char positions of line)

git-svn-id: trunk@17409 -
This commit is contained in:
martin 2008-11-17 00:28:47 +00:00
parent 46f962f4b4
commit 0a4ca8c8bf

View File

@ -11194,7 +11194,7 @@ begin
break;
end;
end;
if (ScreenPos>PhysicalPos) and (BytePos>1) and (BytePos<ByteLen)
if (ScreenPos>PhysicalPos) and (BytePos>1) and (BytePos-2<ByteLen)
and (PLine[BytePos-2]=#9) then
dec(BytePos);
Result := BytePos;