minor fixes

This commit is contained in:
Andrew Pamment 2017-03-30 12:45:54 +10:00
parent 4e4e562425
commit 6ba43f0c83
2 changed files with 5 additions and 1 deletions

View File

@ -151,7 +151,7 @@ void add_archiver() {
conf.archivers[conf.archiver_count] = (struct archiver *)malloc(sizeof(struct archiver));
conf.archivers[conf.archiver_count]->name = strdup("New Archiver");
conf.archivers[conf.archiver_count]->extension = strdup("NEW");
conf.archivers[conf.archiver_count]->extension = strdup("new");
conf.archivers[conf.archiver_count]->unpack = strdup("newarc -u *a -d *d");
conf.archivers[conf.archiver_count]->pack = strdup("newarc -p *a -f *f");
conf.archiver_count++;

View File

@ -407,6 +407,10 @@ char *message_editor() {
od_set_cursor(3, 1);
od_set_color(L_WHITE, D_BLACK);
if (position_y - top_of_screen > 20) {
top_of_screen = position_y - 20;
}
for (i=top_of_screen;i<top_of_screen + 20;i++) {
od_set_cursor(i - top_of_screen + 3, 1);
if (i < body_line_count) {