Commit cdcb4b0d authored by Florian Münchbach's avatar Florian Münchbach
Browse files

[syntax_highlight] Clean up tag variables

parent 337522dd
......@@ -237,10 +237,9 @@ class ChatSyntaxHighlighter:
buf.insert(start_iter, insert_text)
start_iter = buf.get_iter_at_mark(start_mark)
tag_start = start_iter
tag_start = buf.get_iter_at_mark(start_mark)
tag_end = buf.get_iter_at_mark(end_mark)
s_code = start_iter.copy()
s_code = tag_start.copy()
e_code = tag_end.copy()
......@@ -258,7 +257,7 @@ class ChatSyntaxHighlighter:
tag.set_property('paragraph-background', self.config.get_bgcolor())
tag.set_property('font', self.config.get_font())
buf.apply_tag(tag, start_iter, tag_end)
buf.apply_tag(tag, tag_start, tag_end)
def __init__(self, config, textview):
self.last_end_mark = None
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment