From 8021283e655d81f8dbdfae7b555bba420964dfef Mon Sep 17 00:00:00 2001
From: Florent Le Coz <louiz@louiz.org>
Date: Sun, 29 May 2011 02:07:30 +0200
Subject: Fix some bug due to the new way chars are returned

---
 src/core.py    | 4 ++--
 src/windows.py | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

(limited to 'src')

diff --git a/src/core.py b/src/core.py
index 44c967ca..1da52b21 100644
--- a/src/core.py
+++ b/src/core.py
@@ -1366,12 +1366,12 @@ class Core(object):
         Read 2 more chars and go to the tab
         with the given number
         """
-        char = self.read_keyboard()
+        char = self.read_keyboard()[0]
         try:
             nb1 = int(char)
         except ValueError:
             return
-        char = self.read_keyboard()
+        char = self.read_keyboard()[0]
         try:
             nb2 = int(char)
         except ValueError:
diff --git a/src/windows.py b/src/windows.py
index df361ed8..eb6dde43 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -1128,7 +1128,7 @@ class MessageInput(Input):
         """
         Read one more char (c) and add \x19c to the string
         """
-        attr_char = self.core.read_keyboard()
+        attr_char = self.core.read_keyboard()[0]
         if attr_char in self.text_attributes or (attr_char in string.digits and int(attr_char) < 7):
             self.do_command('\x19', False)
             self.do_command(attr_char)
-- 
cgit v1.2.3