diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-09-11 04:24:09 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-09-11 04:24:09 +0000 |
commit | 374ab23b42113453beff1010a2354697d16552b7 (patch) | |
tree | 570a4674f8e735aaaf3faad410e68b7e4da25154 /src/window.py | |
parent | efc7b22bdb316633fb50af3b674ee117aefc8619 (diff) | |
download | poezio-374ab23b42113453beff1010a2354697d16552b7.tar.gz poezio-374ab23b42113453beff1010a2354697d16552b7.tar.bz2 poezio-374ab23b42113453beff1010a2354697d16552b7.tar.xz poezio-374ab23b42113453beff1010a2354697d16552b7.zip |
fixed #1767
Diffstat (limited to 'src/window.py')
-rw-r--r-- | src/window.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/window.py b/src/window.py index 993a43ef..5d239c96 100644 --- a/src/window.py +++ b/src/window.py @@ -21,6 +21,7 @@ from os.path import isfile import locale locale.setlocale(locale.LC_ALL, '') +import shlex import curses from config import config @@ -321,7 +322,7 @@ class TextWin(Win): theme.CHAR_QUIT: theme.COLOR_QUIT_CHAR, theme.CHAR_KICK: theme.COLOR_KICK_CHAR, } - for word in txt.split(): + for word in shlex.split(txt): if word in list(special_words.keys()): self.addstr(word, curses.color_pair(special_words[word])) elif word.startswith('(') and word.endswith(')'): |