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

Commit 94c2bcf

Browse files
Merge pull request #1904 from livecode/merge-develop-8.2-31.01.2018
Merge develop 8.2 31.01.2018
2 parents c81ae01 + 8e3d1c4 commit 94c2bcf

5 files changed

Lines changed: 25 additions & 16 deletions

File tree

Toolset/libraries/revidedeveloperextensionlibrary.livecodescript

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -652,28 +652,35 @@ end revIDEDeveloperExtensionEditScript
652652

653653
private command __revIDEDeveloperExtensionEditLCBScript pFile
654654
# AL-2015-04-01: [[ Bug 15130 ]] First check to see if there is an existing association
655+
local tResult
655656
launch document pFile
656-
if the result is not empty then
657+
put the result into tResult
658+
if tResult is not empty then
657659
# AL-2015-04-01: [[ Bug 15130 ]] Check to see if the text editor preference is set
658660
local tEditor
659661
put revIDEGetPreference("LCB_textEditor") into tEditor
660662
if tEditor is not empty then
661663
launch pFile with tEditor
664+
put the result into tResult
662665
end if
663666
end if
664667

665-
if the result is "no association" or the result is "request failed" then
668+
if tResult is "no association" or tResult is "request failed" \
669+
or tResult is "no such program" then
666670
answer file "Select text editor..."
667-
if it is not empty then
668-
launch pFile with it
671+
put it into tEditor
672+
if tEditor is not empty then
673+
launch pFile with tEditor
674+
put the result into tResult
675+
if tResult is empty then
676+
# AL-2015-04-01: [[ Bug 15130 ]] If the new text editor launch was successful, set the preference
677+
revIDESetPreference "LCB_textEditor", tEditor
678+
end if
669679
end if
670680
end if
671681

672-
if the result is not empty then
673-
__revIDEDeveloperExtensionSendError "Could not open" && pFile & ":" && the result
674-
else if it is not empty then
675-
# AL-2015-04-01: [[ Bug 15130 ]] If the new text editor launch was successful, set the preference
676-
revIDESetPreference "LCB_textEditor", it
682+
if tResult is not empty and tResult is not tEditor then
683+
__revIDEDeveloperExtensionSendError "Could not open" && pFile & ":" && tResult
677684
end if
678685
end __revIDEDeveloperExtensionEditLCBScript
679686

Toolset/libraries/revidelibrary.8.livecodescript

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5040,9 +5040,9 @@ end arrayRecurse
50405040
private function __escapeStringAndConvertLineEndings pString
50415041
replace "\" with "\\" in pString
50425042
replace quote with ("\" & quote) in pString
5043-
replace (numToChar(13) & CR) with (CR & numToChar(13)) in pString
5044-
replace (CR & numToChar(13)) with CR in pString
5045-
replace CR with "\n" in pString
5043+
replace CRLF with "\n" in pString
5044+
replace numToCodepoint(13) with "\n" in pString
5045+
replace LF with "\n" in pString
50465046
return (quote & pString & quote)
50475047
end __escapeStringAndConvertLineEndings
50485048

@@ -10837,10 +10837,11 @@ private function escape pString, pConvertLineEndings
1083710837
replace quote with ("\" & quote) in pString
1083810838

1083910839
if pConvertLineEndings is true then
10840-
replace (numToChar(13) & CR) with (CR & numToChar(13)) in pString
10841-
replace (CR & numToChar(13)) with CR in pString
10840+
replace CRLF with "\n" in pString
10841+
replace numToCodepoint(13) with "\n" in pString
1084210842
end if
10843-
replace CR with "\n" in pString
10843+
replace LF with "\n" in pString
10844+
replace numToCodepoint(13) with "\r" in pString
1084410845
//replace "<" with "&lt;" in pString
1084510846
//replace ">" with "&gt;" in pString
1084610847
replace tab with "\t" in pString
966 Bytes
Binary file not shown.

Toolset/palettes/start center/revStartCenterBehavior.livecodescript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ function tilesArray pState
330330
put "lc-ipad-portrait-filled" into tArray[3]["hoverIcon"]
331331

332332
put "Tablet Landscape" into tArray[4]["label"]
333-
put "newTabletPortrait" into tArray[4]["tag"]
333+
put "newTabletLandscape" into tArray[4]["tag"]
334334
put "lc-ipad-landscape" into tArray[4]["icon"]
335335
put "lc-ipad-landscape-filled" into tArray[4]["hoverIcon"]
336336

notes/bugfix-20894.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# [Start Center] Ensure creating new stack with tablet Landscape button works as expected

0 commit comments

Comments
 (0)