JCF should set the cursor at the line end
Original Reporter info from Mantis: okobapatino @OkobaPatino
-
Reporter name: OkobaPatino
Original Reporter info from Mantis: okobapatino @OkobaPatino
- Reporter name: OkobaPatino
Description:
Before solving #38178 (closed), when you were at the line end and format the code, JCF set the cursor at the line end after the format, for example:
procedure TForm1.FormCreate(Sender: TObject);
begin
a:=b;|
end;
Notice the "|", it is at position 8; after format, the code with new spaces will become:
procedure TForm1.FormCreate(Sender: TObject);
begin
a := b;
end;
Before the update, it would set the cursor at 10:
a := b;|
But now it keeps it at 8:
a := |b;
I didn't find any document about how it should behave. Still, I think it is preferable that when someone writes a line and, after the end, hit the format, it should keep the cursor at the line ending not the lat position, but when the cursor is the middle of the line and then formats it, keep it as is.
Mantis conversion info:
- Mantis ID: 38195
- Version: 2.1 (SVN)
- Monitored by: » @OkobaPatino (OkobaPatino)