From 364ce8ea6723b02ba50113fd8ca3f8cec976adfd Mon Sep 17 00:00:00 2001 From: zegonix Date: Sat, 10 Oct 2026 14:15:33 +0200 Subject: [PATCH] added cmakelists file to makefile category --- inc/config.h | 2 +- src/display.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/inc/config.h b/inc/config.h index 2329a0d..791c89a 100644 --- a/inc/config.h +++ b/inc/config.h @@ -60,7 +60,7 @@ const uint32_t exec_colour = 0xEEEEEE; // files by extension #define MAKE_STYLE_NUM ( ( int )1 ) -const style_t makefile_style[ MAKE_STYLE_NUM ] = { style_none }; +const style_t makefile_style[ MAKE_STYLE_NUM ] = { style_underlined }; const uint32_t makefile_colour = 0xEAE977; #define SRC_STYLE_NUM ( ( int )1 ) diff --git a/src/display.c b/src/display.c index a3fbe6f..dcb3b83 100644 --- a/src/display.c +++ b/src/display.c @@ -295,7 +295,9 @@ bool compare_makefile( const directory_entry_t* const entry ) { return 0 == compare_strings( entry->name, "makefile", NAME_MAX, false ) || 0 == compare_strings( entry->name, "readme", 6, false ) - || 0 == compare_strings( entry->extension, "mk", 3, false ); + || 0 == compare_strings( entry->name, "readme", 6, false ) + || 0 == compare_strings( entry->extension, "mk", 3, false ) + || 0 == compare_strings( entry->name, "cmakelists.txt", 15, false ); } bool compare_archives( const directory_entry_t* const entry )