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

Commit d60f2ce

Browse files
authored
Merge pull request #1957 from livecode/bugfix-21167
[Bug 21167] Ensure Replace history is remembered
2 parents ceb499a + 6245454 commit d60f2ce

2 files changed

Lines changed: 2 additions & 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

notes/bugfix-21167.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure Replace history is remembered

0 commit comments

Comments
 (0)