EDIT: When truncating multibank file to one bank, set status[2] to zero

This commit is contained in:
Bobbi Webber-Manners 2020-08-12 23:17:54 -04:00
parent 43912e289b
commit 235cacc036

View File

@ -4,7 +4,6 @@
// Bobbi July-Aug 2020
/////////////////////////////////////////////////////////////////////////////
// TODO: when truncating file to just one bank, should set status[2] to zero
// TODO: Bug - cursor down at EOF succeeds when it should fail
// TODO: Reinstate some form of local cut/copy/paste -- faster!!!
// TODO: Search options - ignore case, complete word.
@ -2337,6 +2336,8 @@ copymove2_cleanup:
gapend = BUFSZ - 1;
draw_screen();
if (status[2] > 0) { // If multipart
if (status[2] == 1) // Truncating in first bank
status[2] = 0; // Make it a singleton
change_aux_bank(++l_auxbank);
do {
gapbegin = 0;