diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-05-15 14:59:13 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-05-15 14:59:13 +0200 |
| commit | 9df6dc2aeb37682a2ef1906e04b9e0436e63a6ba (patch) | |
| tree | ef290f96a5224aadcee579d04c37957e9fe62fd7 /src/Fl_Text_Editor.cxx | |
| parent | a9085c3b114b87356ba4dd11bd76455c31616175 (diff) | |
Fix uses of isupper() and isprint() - STR #3436
Diffstat (limited to 'src/Fl_Text_Editor.cxx')
| -rw-r--r-- | src/Fl_Text_Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
