Author: andar

Revision: 5152

Log:
        Fix missing text if it's before a color tag

Diff:
Modified: trunk/deluge/ui/console/colors.py
===================================================================
--- trunk/deluge/ui/console/colors.py   2009-04-24 18:14:59 UTC (rev 5151)
+++ trunk/deluge/ui/console/colors.py   2009-04-24 18:19:04 UTC (rev 5152)
@@ -102,6 +102,9 @@
     col_index = 0
     while s.find("{{") != -1:
         begin = s.find("{{")
+        if begin > 0:
+            ret.append((curses.color_pair(color_pairs[(schemes["input"][0], 
schemes["input"][1])]), s[:begin]))
+
         end = s.find("}}")
         if end == -1:
             raise BadColorString("Missing closing '}}'")



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to