mirror of
https://github.com/bobbimanners/emailler.git
synced 2024-11-18 21:07:03 +00:00
Refinements to OA-L "Load" command.
This commit is contained in:
parent
d3f80e9205
commit
b2b1a03dec
11
apps/edit.c
11
apps/edit.c
@ -3,7 +3,10 @@
|
||||
// Bobbi July 2020
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// TODO: Still some lingering screen update bugs
|
||||
// Note use my fork of cc65 to get a flashing cursor!!
|
||||
|
||||
// TODO: Improve status line, refresh it properly
|
||||
// TODO: Still some lingering screen update bugs (prob after status line)
|
||||
// TODO: Should be smarter about redrawing in when updating selection!!!
|
||||
// TODO: Doesn't check for error cases when calling gap buffer functions
|
||||
// TODO: Make use of aux mem
|
||||
@ -1071,17 +1074,17 @@ int edit(char *fname) {
|
||||
if (strlen(userentry) == 0)
|
||||
break;
|
||||
strcpy(filename, userentry);
|
||||
gapbegin = 0;
|
||||
gapend = BUFSZ - 1;
|
||||
if (load_file(filename)) {
|
||||
sprintf(userentry, "Can't load %s", filename);
|
||||
show_error(userentry);
|
||||
}
|
||||
strcpy(filename, "");
|
||||
} else {
|
||||
jump_pos(0);
|
||||
pos = 0;
|
||||
modified = 0;
|
||||
startsel = endsel = 65535U;
|
||||
mode = SEL_NONE;
|
||||
}
|
||||
draw_screen();
|
||||
break;
|
||||
case 0x80 + 'M': // OA-M "Move"
|
||||
|
Loading…
Reference in New Issue
Block a user