shithub: pt2-clone

Download patch

ref: 9a3e96f6fa76505ea09a946a7833131b1f434212
parent: 4188e80007f412afb1eaa79901189675073db0ef
author: Olav Sørensen <olav.sorensen@live.no>
date: Sat Aug 12 17:18:09 EDT 2023

Make disk op. entry jumping case-insensitive

--- a/src/pt2_diskop.c
+++ b/src/pt2_diskop.c
@@ -303,7 +303,7 @@
 
 				f = &diskOpEntry[offset];
 
-				if (!f->isDir && f->firstAnsiChar == jumpToChar)
+				if (!f->isDir && tolower(f->firstAnsiChar) == jumpToChar)
 				{
 					diskop.scrollOffset += DISKOP_LINES;
 					if (diskop.scrollOffset > diskop.numEntries-DISKOP_LINES)
@@ -322,7 +322,7 @@
 		f = diskOpEntry;
 		for (int32_t i = 0; i < diskop.numEntries; i++, f++)
 		{
-			if (!f->isDir && f->firstAnsiChar == jumpToChar)
+			if (!f->isDir && tolower(f->firstAnsiChar) == jumpToChar)
 			{
 				if (diskop.numEntries > DISKOP_LINES)
 				{