Merge pull request #2327 from vintagepc/2089-fix-sheet-rename-cursor

#2089 fix sheet rename cursor
This commit is contained in:
vintagepc 2023-08-05 12:38:53 -04:00 committed by GitHub
commit c276467e51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -5054,6 +5054,10 @@ static void lcd_rename_sheet_menu()
lcd_putc(menuData->name[i]);
}
lcd_putc_at(menuData->selected, 1, '^');
if (menuData->selected > 0)
{
lcd_putc_at(menuData->selected-1, 1, ' ');
}
if (lcd_clicked())
{
if ((menuData->selected + 1u) < sizeof(Sheet::name))