1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 22_fix_not_printable_string.dpatch by <Ying-Chun Liu (PaulLiu) <grandpaul@gmail.com>>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Ignore non-printable characters on text input.
9
===================================================================
10
--- a/src/text.c 2009-12-19 17:12:11.000000000 -0200
11
+++ b/src/text.c 2009-12-19 17:12:11.000000000 -0200
14
else if (keyevent->string)
16
+ if (isprint(keyevent->string[0])) {
17
g_string_append(text->textbuf, keyevent->string);
20
else if ((keyevent->keyval >= GDK_space) && (keyevent->keyval < GDK_Shift_L))