From 9df6dc2aeb37682a2ef1906e04b9e0436e63a6ba Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 15 May 2024 14:59:13 +0200 Subject: Fix uses of isupper() and isprint() - STR #3436 --- src/Fl_Text_Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Fl_Text_Editor.cxx') diff --git a/src/Fl_Text_Editor.cxx b/src/Fl_Text_Editor.cxx index 5e8f2c583..55da11cb8 100644 --- a/src/Fl_Text_Editor.cxx +++ b/src/Fl_Text_Editor.cxx @@ -233,7 +233,7 @@ static void kill_selection(Fl_Text_Editor* e) { */ int Fl_Text_Editor::kf_default(int c, Fl_Text_Editor* e) { // FIXME: this function is a mess! Fix this! - if (!c || (!isprint(c) && c != '\t')) return 0; + if (!c || (!(c > 0 && c < 127 && isprint(c)) && c != '\t')) return 0; char s[2] = "\0"; s[0] = (char)c; kill_selection(e); -- cgit v1.2.3