EDIT: More status line fixup

This commit is contained in:
Bobbi Webber-Manners 2021-06-11 19:26:45 -04:00
parent 89e5de0374
commit e8c726f2fb
1 changed files with 7 additions and 2 deletions

View File

@ -426,13 +426,16 @@ void goto_prompt_row(void) {
*/
void update_status_line(void) {
uint8_t l;
uint8_t no_name = 0;
static char dispfname[MAX_DISP_FILENAME + 1];
static char disppartnum[8 + 1];
goto_prompt_row();
if (strlen(filename) == 0)
strcpy(dispfname, "<scratch>");
if (strlen(filename) == 0) {
strcpy(filename, "<scratch>");
no_name = 1;
}
if (status[2] == 0)
strcpy(disppartnum, "");
else
@ -483,6 +486,8 @@ void update_status_line(void) {
revers(0);
gotoxy(curscol, cursrow);
cursor(1);
if (no_name)
strcpy(filename, "");
}
/*