Minor changes of Fl_Text_Editor.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7805 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2010-11-06 17:51:00 +00:00
parent 1d9781a7ae
commit b1c062ebd1

View File

@ -234,6 +234,7 @@ static void kill_selection(Fl_Text_Editor* e) {
/** Inserts the text associated with the key */
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;
char s[2] = "\0";
s[0] = (char)c;