Subversion Repositories SvarDOS

Rev

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

Rev 1421 Rev 1422
Line 385... Line 385...
385
  }
385
  }
386
}
386
}
387
 
387
 
388
 
388
 
389
static void cursor_up(struct file *db) {
389
static void cursor_up(struct file *db) {
-
 
390
 
390
  if (db->cursor->prev != NULL) {
391
  if (db->cursor->prev == NULL) return;
-
 
392
 
391
    db->curline -= 1;
393
  db->curline -= 1;
392
    db->cursor = db->cursor->prev;
394
  db->cursor = db->cursor->prev;
393
    if (db->cursorposy == 0) {
395
  if (db->cursorposy == 0) {
394
      uidirty.from = 0;
396
    uidirty.from = 0;
395
      uidirty.to = 0xff;
397
    uidirty.to = 0xff;
396
    } else {
398
  } else {
397
      db->cursorposy -= 1;
399
    db->cursorposy -= 1;
398
    }
-
 
399
  }
400
  }
400
}
401
}
401
 
402
 
402
 
403
 
403
static void cursor_eol(struct file *db) {
404
static void cursor_eol(struct file *db) {
Line 416... Line 417...
416
  db->cursorposx = db->cursor->len - db->xoffset;
417
  db->cursorposx = db->cursor->len - db->xoffset;
417
}
418
}
418
 
419
 
419
 
420
 
420
static void cursor_down(struct file *db) {
421
static void cursor_down(struct file *db) {
-
 
422
 
421
  if (db->cursor->next != NULL) {
423
  if (db->cursor->next == NULL) return;
-
 
424
 
422
    db->curline += 1;
425
  db->curline += 1;
423
    db->cursor = db->cursor->next;
426
  db->cursor = db->cursor->next;
424
    if (db->cursorposy < screenh - 2) {
427
  if (db->cursorposy < screenh - 2) {
425
      db->cursorposy += 1;
428
    db->cursorposy += 1;
426
    } else {
429
  } else {
427
      uidirty.from = 0;
430
    uidirty.from = 0;
428
      uidirty.to = 0xff;
431
    uidirty.to = 0xff;
429
    }
-
 
430
  }
432
  }
431
}
433
}
432
 
434
 
433
 
435
 
434
static void cursor_left(struct file *db) {
436
static void cursor_left(struct file *db) {