mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2025-06-21 10:27:48 +02:00
Minor
This commit is contained in:
parent
2542e530c4
commit
88a2766221
11
previews.h
11
previews.h
@ -15,16 +15,21 @@
|
|||||||
|
|
||||||
Preview b_previews[] = {
|
Preview b_previews[] = {
|
||||||
PP(NULL, NULL, NULL, wrapper, INT_MAX),
|
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, bat),
|
||||||
PR(NULL, "text", NULL, highlight),
|
PR(NULL, "text", NULL, highlight),
|
||||||
PR(NULL, "text", NULL, source_highlight),
|
PR(NULL, "text", NULL, source_highlight),
|
||||||
PR(NULL, "text", NULL, cat),
|
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, "image", NULL, image),
|
||||||
PR(NULL, "video", NULL, video),
|
PR(NULL, "video", NULL, video),
|
||||||
|
|
||||||
PR(NULL, "application", "pdf", pdf),
|
PR(NULL, "application", "pdf", pdf),
|
||||||
|
PR(NULL, "application", "json", json),
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* vim: set nowrap: */
|
/* vim: set nowrap: */
|
||||||
|
@ -297,6 +297,9 @@ exit:
|
|||||||
|
|
||||||
void config_cleanup(void)
|
void config_cleanup(void)
|
||||||
{
|
{
|
||||||
if (lexer)
|
if (!lexer)
|
||||||
|
return;
|
||||||
|
|
||||||
lexer_free(lexer);
|
lexer_free(lexer);
|
||||||
|
lexer = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user