EDIT: More status line fixup
This commit is contained in:
parent
89e5de0374
commit
e8c726f2fb
|
@ -426,13 +426,16 @@ void goto_prompt_row(void) {
|
||||||
*/
|
*/
|
||||||
void update_status_line(void) {
|
void update_status_line(void) {
|
||||||
uint8_t l;
|
uint8_t l;
|
||||||
|
uint8_t no_name = 0;
|
||||||
static char dispfname[MAX_DISP_FILENAME + 1];
|
static char dispfname[MAX_DISP_FILENAME + 1];
|
||||||
static char disppartnum[8 + 1];
|
static char disppartnum[8 + 1];
|
||||||
|
|
||||||
goto_prompt_row();
|
goto_prompt_row();
|
||||||
|
|
||||||
if (strlen(filename) == 0)
|
if (strlen(filename) == 0) {
|
||||||
strcpy(dispfname, "<scratch>");
|
strcpy(filename, "<scratch>");
|
||||||
|
no_name = 1;
|
||||||
|
}
|
||||||
if (status[2] == 0)
|
if (status[2] == 0)
|
||||||
strcpy(disppartnum, "");
|
strcpy(disppartnum, "");
|
||||||
else
|
else
|
||||||
|
@ -483,6 +486,8 @@ void update_status_line(void) {
|
||||||
revers(0);
|
revers(0);
|
||||||
gotoxy(curscol, cursrow);
|
gotoxy(curscol, cursrow);
|
||||||
cursor(1);
|
cursor(1);
|
||||||
|
if (no_name)
|
||||||
|
strcpy(filename, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue