Skip to content
Permalink
Browse files
Fix #6940, error traceback output to console crashes under QScintilla…
… 2.7
  • Loading branch information
dakcarto committed Jan 4, 2013
1 parent 08be5cd commit 866bc22a34f197dfb341de0b46a088bfdea868de
Showing with 3 additions and 1 deletion.
  1. +3 −1 python/console/console_output.py
@@ -38,7 +38,9 @@ def __init__(self, edit, out=None, style=None):

def write(self, m):
if self.style == "traceback":
self.outputArea.SendScintilla(QsciScintilla.SCI_SETSTYLING, len(m), 1)
# Show errors in red
pos = self.outputArea.SendScintilla(QsciScintilla.SCI_GETCURRENTPOS)
self.outputArea.SendScintilla(QsciScintilla.SCI_STARTSTYLING, pos, 31)
self.outputArea.append(m)
self.outputArea.SendScintilla(QsciScintilla.SCI_SETSTYLING, len(m), 1)
else:

0 comments on commit 866bc22

Please sign in to comment.