From 9361bf59d925d0a2e57131b4e7fb00d37a794777 Mon Sep 17 00:00:00 2001 From: ESH Date: Sat, 7 Jun 2025 20:35:37 +0200 Subject: [PATCH] Fix "Move line" is able to delete lines in read only source code --- IDE/src/ui/SourceEditWidgetContent.bf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/IDE/src/ui/SourceEditWidgetContent.bf b/IDE/src/ui/SourceEditWidgetContent.bf index c88f50ec..395e4373 100644 --- a/IDE/src/ui/SourceEditWidgetContent.bf +++ b/IDE/src/ui/SourceEditWidgetContent.bf @@ -3743,6 +3743,9 @@ namespace IDE.ui public void MoveLine(VertDir dir) { + if (CheckReadOnly()) + return; + RemoveSecondaryTextCursors(); int lineNum = CursorLineAndColumn.mLine;