Insert new line before line 1

Insert new line before line 1

17
Basic UserBasic User
17

    Jul 12, 2007#1

    Hello,

    I have a "simple" task: I want to insert a new line before line 1 via a macro, but the new line is always entered after line 1.

    Here is what I got:

    Code: Select all

    InsertMode
    ColumnModeOff
    HexOff
    UnixReOff
    Top
    Key HOME
    InsertLine
    ...
    
    What is wrong with that?

    262
    MasterMaster
    262

      Jul 12, 2007#2

      Yes, InsertLine is supposed to act this way as it also says in the help "Inserts blank line below current cursor position". The Edit-menu equivalent "Insert Line" does exactly the same.

      What you need to get what you want is:

      Code: Select all

      InsertMode
      ColumnModeOff
      HexOff
      Top
      "
      "

      17
      Basic UserBasic User
      17

        Jul 12, 2007#3

        Thanks a lot. That works.