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

Commit 0ba598a

Browse files
Merge pull request #2023 from livecode/bugfix-18636
[18636] Fix Return key finding only first result in SE Search
2 parents 08cb1b3 + b0c0174 commit 0ba598a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
script "revSEEditorBehavior"
1+
script "revSEEditorBehavior" with behavior "com.livecode.scripteditor.behavior.editorcommon"
22
# Stores the following mapping
33
# <handler name>,type => string representing the handler type eg PF for private function
44
# <handler name>,start => line offset to start of handler
@@ -1951,14 +1951,14 @@ command showNextFindResult pQuery, pIsRegExp, pUseWildCards, pWholeMatch, pIgnor
19511951
revSESetCurrentObject tObject, empty, true
19521952
put 1 into tStart
19531953
else
1954-
if tStart is empty then
1954+
if sLastFindLocation is empty then
19551955
# Must be the first iteration
19561956
put tSearch["start"] into tStart
19571957
else
19581958
# Calculate a new search start
19591959
if sLastFindObject is not empty and seGetRuggedId(sLastFindObject) is seGetRuggedId(getObjectID()) and sLastFindLocation is not empty then
19601960
if pInteractive then
1961-
put item 1 of sLastFindLocation into tStart
1961+
put item 2 of sLastFindLocation into tStart
19621962
else
19631963
put item 1 of sLastFindLocation + 1 into tStart
19641964
end if

notes/bugfix-18636.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[SE Interactive search] Ensure pressing the return key cycles through all instances of the string to be found

0 commit comments

Comments
 (0)