mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2025-01-29 18:38:33 +01:00
Minor
This commit is contained in:
parent
2542e530c4
commit
88a2766221
11
previews.h
11
previews.h
@ -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: */
|
||||
|
@ -297,6 +297,9 @@ exit:
|
||||
|
||||
void config_cleanup(void)
|
||||
{
|
||||
if (lexer)
|
||||
lexer_free(lexer);
|
||||
if (!lexer)
|
||||
return;
|
||||
|
||||
lexer_free(lexer);
|
||||
lexer = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user