BreakLine on an End of a Line

BreakLine on an End of a Line

Postby omata » 07 Feb 2010 20:54

File: SynEdit.pas
Code: Select all
procedure TCustomSynEdit.ExecuteCommand(Command: TSynEditorCommand; AChar: WideChar; Data: pointer);
:
      ecLineBreak:
:
              if Command = ecLineBreak then
              begin
                InternalCaretXY := BufferCoord(1, CaretY +1); // <-- is new
                if SpaceCount2 > 0 then
                begin
                  SpaceBuffer := Copy(Lines[BackCounter], 1, SpaceCount2);
//                  InternalCaretXY := BufferCoord(1, CaretY +1); // <-- kill this
                  for i := 1 to Length(SpaceBuffer) do
                    if SpaceBuffer[i] = #9 then
                      CommandProcessor(ecTab, #0, nil)
                    else
                      CommandProcessor(ecChar, SpaceBuffer[i], nil);
                end;
              end;
omata
 
Posts: 5
Joined: 07 Feb 2010 20:50

Re: BreakLine on an End of a Line

Postby Maël » 08 Feb 2010 20:37

This forum is not the place to talk about SynEdit. Please use the bug-tracker. SynEdit isn't my personal, but a community project.
Maël
Site Admin
 
Posts: 492
Joined: 12 Mar 2005 15:15
Location: Germany

Re: BreakLine on an End of a Line

Postby omata » 09 Feb 2010 21:33

I'm sorry.

Please delete my account.
omata
 
Posts: 5
Joined: 07 Feb 2010 20:50

Re: BreakLine on an End of a Line

Postby arcostasi » 28 Apr 2010 14:51

thanks omata, your code works fine! Please continues in the forum, you helped a lot! :D
arcostasi
 
Posts: 1
Joined: 28 Apr 2010 14:46


Return to Off Topic

Who is online

Users browsing this forum: No registered users and 1 guest

cron