Skip to content

Commit

Permalink
pythoneditor/editor.py: Keep temp cursor ref
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-erjavec committed Mar 4, 2024
1 parent 5b0a0f4 commit b29d938
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Orange/widgets/data/utils/pythoneditor/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1494,7 +1494,8 @@ def makeSelection(cursor):
return [makeSelection(cursor) \
for cursor in rectangularSelectionCursors]
else:
return [makeSelection(self.textCursor())]
cursor = self.textCursor()
return [makeSelection(cursor)]

def insertFromMimeData(self, source):
if source.hasFormat(self._rectangularSelection.MIME_TYPE):
Expand Down

0 comments on commit b29d938

Please sign in to comment.