aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-09-12 09:40:30 +0200
committerMattias Andrée <maandree@operamail.com>2013-09-12 09:40:30 +0200
commitbca19145a374dfdcc3f7cb4ed8be7a7dc4db97d7 (patch)
treeb2ad78d5c42b5d822d24c778bebe77ebf643f88b /src
parentimplement C-left and C-right (diff)
downloadpytagomacs-bca19145a374dfdcc3f7cb4ed8be7a7dc4db97d7.tar.gz
pytagomacs-bca19145a374dfdcc3f7cb4ed8be7a7dc4db97d7.tar.bz2
pytagomacs-bca19145a374dfdcc3f7cb4ed8be7a7dc4db97d7.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/editor.py5
1 files 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 <http://www.gnu.org/licenses/>.
'''
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: