Subversion Repositories SvarDOS

Rev

Rev 1361 | Rev 1363 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1361 Rev 1362
Line 864... Line 864...
864
  }
864
  }
865
 
865
 
866
  for (;;) {
866
  for (;;) {
867
    int k;
867
    int k;
868
 
868
 
-
 
869
    /* add an extra empty line if cursor is on last line and this line is not empty */
-
 
870
    if ((db->cursor->next == NULL) && (db->cursor->len != 0)) {
-
 
871
      if (line_add(db, NULL, 0) == 0) {
-
 
872
        db->cursor = db->cursor->prev; /* line_add() changes the cursor pointer */
-
 
873
      }
-
 
874
    }
-
 
875
 
869
    check_cursor_not_after_eol(db);
876
    check_cursor_not_after_eol(db);
870
    mdr_cout_locate(db->cursorposy, db->cursorposx);
877
    mdr_cout_locate(db->cursorposy, db->cursorposx);
871
 
878
 
872
    if (uidirty.from != 0xff) {
879
    if (uidirty.from != 0xff) {
873
      ui_refresh(db);
880
      ui_refresh(db);