From e8c726f2fb948a0b605ad21c77816baf5f729bb2 Mon Sep 17 00:00:00 2001 From: Bobbi Webber-Manners Date: Fri, 11 Jun 2021 19:26:45 -0400 Subject: [PATCH] EDIT: More status line fixup --- apps/edit.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/edit.c b/apps/edit.c index 2c7de12..af93b3d 100644 --- a/apps/edit.c +++ b/apps/edit.c @@ -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, ""); + if (strlen(filename) == 0) { + strcpy(filename, ""); + 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, ""); } /*