333,7 → 333,11 |
} |
|
/* "file changed" flag */ |
mdr_cout_char(screenh - 1, 0, db->modflag, SCHEME_STBAR1); |
{ |
char flg = ' '; |
if (db->modflag) flg = '*'; |
mdr_cout_char(screenh - 1, 0, flg, SCHEME_STBAR1); |
} |
|
/* scroll bar */ |
for (y = 0; y < (screenh - 1); y++) { |
461,7 → 465,7 |
db->cursor->len -= 1; /* do this AFTER memmove so the copy includes the nul terminator */ |
uidirty.from = db->cursorposy; |
uidirty.to = db->cursorposy; |
db->modflag = '*'; |
db->modflag = 1; |
} else if (db->cursor->next != NULL) { /* cursor is at end of line: merge current line with next one (if there is a next one) */ |
struct line far *nextline = db->cursor->next; |
if (db->cursor->next->len > 0) { |
478,7 → 482,7 |
uidirty.from = db->cursorposy; |
uidirty.to = 0xff; |
db->totlines -= 1; |
db->modflag = '*'; |
db->modflag = 1; |
} |
} |
|
666,7 → 670,7 |
static void insert_in_line(struct file *db, const char *databuf, unsigned short len) { |
if (curline_resize(db, db->cursor->len + len) == 0) { |
unsigned short off = db->xoffset + db->cursorposx; |
db->modflag = '*'; |
db->modflag = 1; |
_fmemmove(db->cursor->payload + off + len, db->cursor->payload + off, db->cursor->len - off + 1); |
db->cursor->len += len; |
uidirty.from = db->cursorposy; |
843,7 → 847,7 |
unsigned short off = db->xoffset + db->cursorposx; |
/* add a new line */ |
if (line_add(db, db->cursor->payload + off, db->cursor->len - off) == 0) { |
db->modflag = '*'; |
db->modflag = 1; |
db->cursor = db->cursor->prev; /* back to original line */ |
/* trim the line above */ |
db->cursor->len = off; |
937,7 → 941,7 |
uidirty.statusbar = 1; |
|
} else if (k == 0x144) { /* F10 */ |
db->modflag = '*'; |
db->modflag = 1; |
db->lfonly ^= 1; |
uidirty.statusbar = 1; |
|