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

Commit 489b8b4

Browse files
committed
[Bug 21167] Ensure Replace history is remembered
1 parent a649114 commit 489b8b4

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ command update
7777
put getReplaceLabel() into tReplaceLabel
7878

7979
local tReplaceText
80-
put getReplaceLabel() into tReplaceLabel
80+
put historyGet("replace") into tReplaceText
8181
if tReplaceLabel is not empty and tReplaceLabel is not among the lines of tReplaceText then
8282
put tReplaceLabel & return & tReplaceText into tReplaceText
8383
end if
@@ -119,7 +119,6 @@ command updateButtonStates
119119
enable button "Find all" of me
120120
enable button "Replace all" of me
121121
enable button "Replace" of me
122-
select item 1 of button "replace"
123122
else
124123
enable button "Find all" of me
125124

@@ -130,7 +129,6 @@ command updateButtonStates
130129
disable button "Find Next" of me
131130
disable button "Replace one" of me
132131
disable button "Replace" of me
133-
set the label of button "replace" of me to empty
134132
end if
135133
end updateButtonStates
136134

0 commit comments

Comments
 (0)