Просмотр исходного кода

Merge pull request #2268 from m910q/move-line-fix

Fix "Move line" is able to delete lines in read only source code
Brian Fiete 3 месяцев назад
Родитель
Сommit
fb164597d0
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      IDE/src/ui/SourceEditWidgetContent.bf

+ 3 - 0
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;