View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0027342||2.x IDE Bugs||Code Editor||Public||2017-08-10 12:31||2018-10-30 11:24|
|Reporter||Sam Cumming||Assigned To||Alan Savage|
|Priority||Low||Severity||C - General||Reproducibility||100%|
|Target Version||2.2.1||Fixed in Version||2.2.1|
|Summary||0027342: Code Editor: Search In Script replaces in strange order|
|Description||If 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 Reproduce||1. 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.
|Tags||CodeEditor, IDE, search|
|2.x IDE Found In||126.96.36.199|
|2.x Runtime Found In||188.8.131.52|
|2.x IDE Verified In||184.108.40.2067|
|2.x Runtime Verified In||220.127.116.119|
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
||additionally, replace should always function on currently highlighted match (or just highlight the next match if not highlighted already, and replace on next click)|