diff --git a/biscuit/core/components/editors/texteditor/text.py b/biscuit/core/components/editors/texteditor/text.py index b1a2892d..9aa867ab 100644 --- a/biscuit/core/components/editors/texteditor/text.py +++ b/biscuit/core/components/editors/texteditor/text.py @@ -226,10 +226,11 @@ def close_bracket(self, e: tk.Event): if c == e.char: self.mark_set(tk.INSERT, "insert+1c") return "break" - - self.insert(tk.INSERT, stack.pop(), self.base.theme.editors.bracket_colors[(i%3)] if i > -1 else 'red') - else: - self.insert(tk.INSERT, e.char, 'red') + + # TODO; coloring not done right. whatever color the last bracket has that color is spread to the next characters + # self.insert(tk.INSERT, stack.pop(), self.base.theme.editors.bracket_colors[(i%3)] if i > -1 else 'red') + # else: + self.insert(tk.INSERT, e.char, 'red') return "break" def complete_pair(self, e: tk.Event, tag=None): @@ -249,10 +250,11 @@ def complete_pair(self, e: tk.Event, tag=None): return # if there is no selection, insert the character and move cursor inside the pair - if tag: - self.insert(tk.INSERT, char + end, tag) - else: - self.insert(tk.INSERT, char + end) + # TODO; coloring is not done properly + # if tag: + # self.insert(tk.INSERT, char + end, tag) + # else: + self.insert(tk.INSERT, char + end) self.mark_set(tk.INSERT, "insert-1c") return "break"