Skip to content

Commit

Permalink
init editorstack with multicursor_support attr
Browse files Browse the repository at this point in the history
  • Loading branch information
athompson673 committed Dec 6, 2024
1 parent 0bce26a commit 3432502
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions spyder/plugins/editor/widgets/codeeditor/codeeditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,7 @@ def _on_cursor_blinktimer_timeout(self):
@Slot(QPaintEvent)
def paint_cursors(self, event):
"""Paint all cursors"""
# TODO Critical: timer and cursor width sync with multiple editorstacks
if self.overwrite_mode:
font = self.textCursor().block().charFormat().font()
cursor_width = QFontMetrics(font).horizontalAdvance(" ")
Expand Down
1 change: 1 addition & 0 deletions spyder/plugins/editor/widgets/editorstack/editorstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ def __init__(self, parent, actions, use_switcher=True):
self.remove_trailing_newlines = False
self.convert_eol_on_save = False
self.convert_eol_on_save_to = 'LF'
self.multicursor_support = True
self.create_new_file_if_empty = True
self.indent_guides = False
self.__file_status_flag = False
Expand Down

0 comments on commit 3432502

Please sign in to comment.