This commit is contained in:
Nikita Ivanov 2022-06-10 16:46:38 +05:00
parent 2542e530c4
commit 88a2766221
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133
2 changed files with 13 additions and 5 deletions

View File

@ -15,16 +15,21 @@
Preview b_previews[] = {
PP(NULL, NULL, NULL, wrapper, INT_MAX),
PR(NULL, NULL, NULL, any),
PR("md", NULL, NULL, markdown),
PR(NULL, "text", NULL, bat),
PR(NULL, "text", NULL, highlight),
PR(NULL, "text", NULL, source_highlight),
PR(NULL, "text", NULL, cat),
PR(NULL, NULL, NULL, any),
PR("md", NULL, NULL, markdown),
PR(NULL, "application", "json", json),
PR(NULL, "image", NULL, image),
PR(NULL, "video", NULL, video),
PR(NULL, "application", "pdf", pdf),
PR(NULL, "application", "json", json),
};
/* vim: set nowrap: */

View File

@ -297,6 +297,9 @@ exit:
void config_cleanup(void)
{
if (lexer)
lexer_free(lexer);
if (!lexer)
return;
lexer_free(lexer);
lexer = NULL;
}