From b29d938e7fea19d93fa13102095740bb7b8f9fb9 Mon Sep 17 00:00:00 2001 From: Ales Erjavec Date: Mon, 4 Mar 2024 12:06:57 +0100 Subject: [PATCH] pythoneditor/editor.py: Keep temp cursor ref --- Orange/widgets/data/utils/pythoneditor/editor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Orange/widgets/data/utils/pythoneditor/editor.py b/Orange/widgets/data/utils/pythoneditor/editor.py index 9dbdac81a2d..35a26ad96b3 100644 --- a/Orange/widgets/data/utils/pythoneditor/editor.py +++ b/Orange/widgets/data/utils/pythoneditor/editor.py @@ -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):