From e15cfa043b0ceee6a49879f0de312ba8fc1726c5 Mon Sep 17 00:00:00 2001 From: BerndN Date: Mon, 9 Dec 2019 09:33:55 +0100 Subject: [PATCH 1/2] [Bug 22486] Fix missing return in commoneditor scriptFormat --- .../behaviors/revsecommoneditorbehavior.livecodescript | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Toolset/palettes/script editor/behaviors/revsecommoneditorbehavior.livecodescript b/Toolset/palettes/script editor/behaviors/revsecommoneditorbehavior.livecodescript index b24dd08a36..76010a235e 100644 --- a/Toolset/palettes/script editor/behaviors/revsecommoneditorbehavior.livecodescript +++ b/Toolset/palettes/script editor/behaviors/revsecommoneditorbehavior.livecodescript @@ -3429,7 +3429,9 @@ command scriptFormat pScope, pDontGroup if tStart > tEnd then put tFirstSelectionOffset into tLastSelectionOffset else - 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 + 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 if tStart is not empty then if tStart > tEnd then From fc581b8d2fdb8e58070a289e06ce10e0e20eb838 Mon Sep 17 00:00:00 2001 From: BerndN Date: Mon, 9 Dec 2019 09:36:18 +0100 Subject: [PATCH 2/2] Create bugfix-22486.md --- notes/bugfix-22486.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 notes/bugfix-22486.md diff --git a/notes/bugfix-22486.md b/notes/bugfix-22486.md new file mode 100644 index 0000000000..23617caa25 --- /dev/null +++ b/notes/bugfix-22486.md @@ -0,0 +1 @@ +# Fix missing return in commoneditor scriptFormat