summaryrefslogtreecommitdiff
path: root/src/window.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.py')
-rw-r--r--src/window.py3
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(')'):