summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/window.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/window.py b/src/window.py
index e92fdc5b..162d10f7 100644
--- a/src/window.py
+++ b/src/window.py
@@ -439,9 +439,11 @@ class TextWin(Win):
try:
splitted = shlex.split(txt)
except ValueError:
- from common import debug
- debug('SHLEX FAILED on: [%s]\n' % (txt,))
- splitted = 'shlex failed here. See debug'.split()
+ # FIXME colors are disabled on too long words
+ txt = txt.replace('"[', '').replace(']"', '')\
+ .replace('"{', '').replace('}"', '')\
+ .replace('"(', '').replace(')"', '')
+ splitted = txt.split()
for word in splitted:
if word in list(special_words.keys()):
self.addstr(word, curses.color_pair(special_words[word]))