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

Commit 2634345

Browse files
Merge pull request #2109 from BerndN/patch-9
[Bug 22486] Fix missing return in commoneditor scriptFormat
2 parents c6d1fc6 + fc581b8 commit 2634345

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-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

notes/bugfix-22486.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix missing return in commoneditor scriptFormat

0 commit comments

Comments
 (0)