View Issue Details

IDProjectCategoryView StatusLast Update
00273422.x IDE BugsCode EditorPublic2018-10-30 11:24
ReporterSam CummingAssigned ToAlan Savage 
PriorityLowSeverityC - GeneralReproducibility100%
Status ClosedResolutionFixed 
Product VersionPre-2.1.3 
Target Version2.2.1Fixed in Version2.2.1 
Summary0027342: Code Editor: Search In Script replaces in strange order
DescriptionIf you use Find and Replace in a script to replace some words, the order is strange. It will replace the 2nd find, then the 1st, then the 4th, then 3rd, etc.
Steps To Reproduce1. Open a script with repeated lines.
2. Search for a word in those lines.
3. Try to replace that word with another.
4. Observe strange order.
TagsCodeEditor, IDE, search
2.x IDE Found In2.1.0.189
2.x Runtime Found In2.1.0.126
2.x IDE Verified In2.2.1.357
2.x Runtime Verified In2.2.1.269

Activities

Alan Savage

2018-07-19 15:15

Developer   ~0060903

Also as noted in tickets/133259 - replace highlights the current match but replaces the next match - meaning you cannot tell what is being replaced next (even if order is correct, next match may not be on screen)
-replace should replace the currently highlighted match, and then highlight the next match

Alan Savage

2018-07-30 09:54

Developer   ~0060954

additionally, replace should always function on currently highlighted match (or just highlight the next match if not highlighted already, and replace on next click)