Skip to content

Commit b212d73

Browse files
Fix PythonSH install order in order to fix caret line color
1 parent 9da3824 commit b212d73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyqode/python/widgets/code_edit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ def __init__(self, parent=None, create_default_actions=True,
3030
color_scheme='qt'):
3131
super(PyCodeEditBase, self).__init__(parent, create_default_actions)
3232
self.file = pymanagers.PyFileManager(self)
33-
self.modes.append(pymodes.PythonSH(
34-
self.document(), color_scheme=ColorScheme(color_scheme)))
3533

3634
def setPlainText(self, txt, mimetype='text/x-python', encoding='utf-8'):
3735
"""
@@ -98,6 +96,8 @@ def __init__(self, parent=None, server_script=server.__file__,
9896
self.modes.append(pymodes.PyIndenterMode())
9997
self.modes.append(pymodes.GoToAssignmentsMode())
10098
self.modes.append(pymodes.CommentsMode())
99+
self.modes.append(pymodes.PythonSH(
100+
self.document(), color_scheme=ColorScheme(color_scheme)))
101101
self.syntax_highlighter.fold_detector = PythonFoldDetector()
102102

103103
def clone(self):

0 commit comments

Comments
 (0)