1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-20 08:58:00 +02:00

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

Fix "Move line" is able to delete lines in read only source code
This commit is contained in:
Brian Fiete 2025-06-09 12:04:45 +02:00 committed by GitHub
commit fb164597d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3743,6 +3743,9 @@ namespace IDE.ui
public void MoveLine(VertDir dir) public void MoveLine(VertDir dir)
{ {
if (CheckReadOnly())
return;
RemoveSecondaryTextCursors(); RemoveSecondaryTextCursors();
int lineNum = CursorLineAndColumn.mLine; int lineNum = CursorLineAndColumn.mLine;