diff --git a/app/menu.c b/app/menu.c index c7a67e7..6cbb5c1 100644 --- a/app/menu.c +++ b/app/menu.c @@ -1451,19 +1451,19 @@ static void MENU_Key_MENU(const bool bKeyPressed, const bool bKeyHeld) #ifdef ENABLE_MDC1200 if (UI_MENU_GetCurrentMenuId() == MENU_MDC_ID) { - if (edit_index < 0) - { -// edit_index = 0; - - -// while (edit_index < 4) -// edit[edit_index++] = '_'; - edit_index = 0; // 'edit_index' is going to be used as the cursor position - // make a copy so we can test for change when exiting the menu item - memmove(edit_original, edit, sizeof(edit_original)); - return; - } - else +// if (edit_index < 0) +// { +//// edit_index = 0; +// +// +//// while (edit_index < 4) +//// edit[edit_index++] = '_'; +// edit_index = 0; // 'edit_index' is going to be used as the cursor position +// // make a copy so we can test for change when exiting the menu item +// memmove(edit_original, edit, sizeof(edit_original)); +// return; +// } +// else if (edit_index >= 0 && edit_index < 4) { // editing the channel name characters diff --git a/ui/menu.c b/ui/menu.c index 652f272..5dd8c56 100644 --- a/ui/menu.c +++ b/ui/menu.c @@ -701,6 +701,8 @@ void UI_DisplayMenu(void) { // else if(gIsInSubMenu){ // show the channel name being edited edit_index=0; + memmove(edit_original, edit, sizeof(edit_original)); + UI_PrintStringSmall(edit, menu_item_x1, menu_item_x2, 3); if (edit_index < 4) UI_PrintStringSmall("^", menu_item_x1+(((menu_item_x2 - menu_item_x1) - (28)) + 1) / 2 + (7 * edit_index), 0, 4); // show the cursor