From bca19145a374dfdcc3f7cb4ed8be7a7dc4db97d7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 12 Sep 2013 09:40:30 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/editor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/editor.py b/src/editor.py index d258a84..709278b 100644 --- a/src/editor.py +++ b/src/editor.py @@ -19,6 +19,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . ''' import sys +import string from subprocess import Popen, PIPE import gettext @@ -564,8 +565,8 @@ class TextArea(): update_status() redraw() - def letter_type(char): - return char == ' ' + def letter_type(char): ## XXX how do we do this with unicode support + return (char in string.whitespace) or (char in string.punctuation) update_status() while True: -- cgit v1.2.3-70-g09d2