Subversion Repositories SvarDOS

Rev

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

Rev 1420 Rev 1421
Line 498... Line 498...
498
  }
498
  }
499
}
499
}
500
 
500
 
501
 
501
 
502
static void bkspc(struct file *db) {
502
static void bkspc(struct file *db) {
503
 
-
 
504
  /* backspace is basically "left + del", not applicable only if cursor is on 1st byte of the file */
503
  /* backspace is basically "left + del", not applicable only if cursor is on 1st byte of the file */
505
  if ((db->cursorposx == 0) && (db->xoffset == 0) && (db->cursor->prev == NULL)) return;
504
  if ((db->cursorposx + db->xoffset == 0) && (db->cursor->prev == NULL)) return;
506
 
505
 
507
  cursor_left(db);
506
  cursor_left(db);
508
  del(db);
507
  del(db);
509
}
508
}
510
 
509