From 714cd0ed8041676c90769d1dcf34c3c2ca3eefb5 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Fri, 24 Apr 2009 18:19:04 +0000 Subject: [PATCH] Fix missing text if it's before a color tag --- deluge/ui/console/colors.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deluge/ui/console/colors.py b/deluge/ui/console/colors.py index f4ab34471..930e0d0b7 100644 --- a/deluge/ui/console/colors.py +++ b/deluge/ui/console/colors.py @@ -102,6 +102,9 @@ def parse_color_string(s): 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 '}}'")