default style for files

This commit is contained in:
root committed 2026-10-13 16:25:23 +02:00
1 parent 95fc4dec6a
commit dfd525bed2
2 files changed
+12 -5

No files matched your search

+6 -3
View File
@@ -278,9 +278,7 @@ void set_file_style( const directory_entry_t* const entry )
format_set_style( &executable_style[ 0 ], EXEC_STYLE_NUM );
format_set_colour( executable_colour );
}
// makefiles and readmes
if ( compare_makefile( entry ) )
else if ( compare_makefile( entry ) )
{
format_set_style( &makefile_style[ 0 ], MAKE_STYLE_NUM );
format_set_colour( makefile_colour );
@@ -295,6 +293,11 @@ void set_file_style( const directory_entry_t* const entry )
format_set_style( &source_style[ 0 ], SRC_STYLE_NUM );
format_set_colour( source_colour );
}
else
{
format_set_style( &others_style[ 0 ], OTH_STYLE_NUM );
format_set_colour( others_colour );
}
}
bool compare_makefile( const directory_entry_t* const entry )