Subversion Repositories SvarDOS

Rev

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

Rev 1436 Rev 1437
Line 954... Line 954...
954
 
954
 
955
    /* add an extra empty line if cursor is on last line and this line is not empty */
955
    /* add an extra empty line if cursor is on last line and this line is not empty */
956
    if ((db->cursor->next == NULL) && (db->cursor->len != 0)) {
956
    if ((db->cursor->next == NULL) && (db->cursor->len != 0)) {
957
      if (line_add(db, NULL, 0) == 0) {
957
      if (line_add(db, NULL, 0) == 0) {
958
        db->cursor = db->cursor->prev; /* line_add() changes the cursor pointer */
958
        db->cursor = db->cursor->prev; /* line_add() changes the cursor pointer */
-
 
959
        db->curline -= 1;
959
      }
960
      }
960
    }
961
    }
961
 
962
 
962
    check_cursor_not_after_eol(db);
963
    check_cursor_not_after_eol(db);
963
    mdr_cout_locate(db->cursorposy, db->cursorposx);
964
    mdr_cout_locate(db->cursorposy, db->cursorposx);