Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit e15cfa0

Browse files
authored
[Bug 22486] Fix missing return in commoneditor scriptFormat
1 parent c6d1fc6 commit e15cfa0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Toolset/palettes/script editor/behaviors/revsecommoneditorbehavior.livecodescript

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3429,7 +3429,9 @@ command scriptFormat pScope, pDontGroup
34293429
if tStart > tEnd then
34303430
put tFirstSelectionOffset into tLastSelectionOffset
34313431
else
3432-
put(the number of chars of line 1 to (tLine + (tSelectionLineCount - 1)) of tNewScript - the number of chars of line 1 to (tLine + (tSelectionLineCount - 1)) of tScript) into tLastSelectionOffset end if
3432+
put(the number of chars of line 1 to (tLine + (tSelectionLineCount - 1)) of tNewScript \
3433+
- the number of chars of line 1 to (tLine + (tSelectionLineCount - 1)) of tScript) into tLastSelectionOffset
3434+
end if
34333435

34343436
if tStart is not empty then
34353437
if tStart > tEnd then

0 commit comments

Comments
 (0)