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

Commit 8d10710

Browse files
committed
[[ Bug 20879 ]] Ensure no error when initially opening script editor
1 parent 771cdda commit 8d10710

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ command openControl
88
set the hilite of button "Case" of me to (sePrefGet("find,casesensitive") is true)
99

1010
local tSearch
11-
put the selectedText of field "Script" into tSearch
11+
put revSEGetSelectedText() into tSearch
1212
if tSearch is empty then
1313
put line 1 of seFindHistoryGet("find") into tSearch
1414
end if

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2917,6 +2917,10 @@ on revSEApply pIgnoreErrors
29172917
actionCompile pIgnoreErrors
29182918
end revSEApply
29192919

2920+
function revSEGetSelectedText
2921+
return the selectedText of field "Script" of me
2922+
end revSEGetSelectedText
2923+
29202924
private command appendToList @xList, pValue
29212925
if xList is not empty then
29222926
put return & pValue after xList

notes/bugfix-20879.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix error in script editor find behavior on first open

0 commit comments

Comments
 (0)