From f47ba70f4f030fc083cf6cba2e6613d57537b1a0 Mon Sep 17 00:00:00 2001 From: Jaymes Elliott Date: Wed, 20 Nov 2024 00:44:14 -0500 Subject: [PATCH] Fixed bug on cursor for copy file Fixed bug cursor would continue to move past top file after pressing up. --- src/select_file.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/select_file.c b/src/select_file.c index 3a7e7cc0..66d3aa64 100644 --- a/src/select_file.c +++ b/src/select_file.c @@ -459,15 +459,14 @@ void CopyFile_SelectionAndBlinker() { // 8cd13f uint8 k = selectfile_R16; if (a & 8) { do { - if (--k < 0) { + if (sign8(--k)) { k = 3; break; } } while (!selectfile_arr1[k]); } else { do { - k++; - if (k >= 4) + if (++k >= 4) k = 0; } while (k != 3 && !selectfile_arr1[k]); }