From dc3b0f039341f4aea59d92823a893cb25183cfc5 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Thu, 1 Sep 2022 19:36:56 +0200 Subject: [PATCH] [view] Do not check for isprint in link title. It displayed '*' for valid characters under DOS. --- src/viewer/text/link.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viewer/text/link.cpp b/src/viewer/text/link.cpp index b66595bd3..bf40e311d 100644 --- a/src/viewer/text/link.cpp +++ b/src/viewer/text/link.cpp @@ -1475,7 +1475,7 @@ get_current_link_title(struct document_view *doc_view) if (link_title && !doc_view->document->options.utf8) #endif /* CONFIG_UTF8 */ for (src = link_title; *src; src++) - if (!isprint(*src) || iscntrl(*src)) + if (iscntrl((unsigned char)*src)) *src = '*'; return link_title;