Add meson option to disable urlify.

Useful for systems that don't use a version of less with hyperlink
support.
This commit is contained in:
James Hilliard
2021-07-19 11:57:51 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent 95b63c755b
commit e5d86ebed5
3 changed files with 7 additions and 0 deletions
+4
View File
@@ -19,6 +19,7 @@
#include "util.h"
bool urlify_enabled(void) {
#if ENABLE_URLIFY
static int cached_urlify_enabled = -1;
if (cached_urlify_enabled < 0) {
@@ -32,6 +33,9 @@ bool urlify_enabled(void) {
}
return cached_urlify_enabled;
#else
return 0;
#endif
}
int terminal_urlify(const char *url, const char *text, char **ret) {