ScriptUO

Scripting Resources & Utilities => ScriptUO Application => Bug discussion => Topic started by: Cerveza on February 26, 2009, 05:21:28 AM

Title: Not too much of a bug.... finding two instances in a single line.
Post by: Cerveza on February 26, 2009, 05:21:28 AM
If you search for a term and it's listed twice on the same line, the display will correctly show the line twice, but the same term is hilighted in each.

Search for bank

707:       set %doi_bank_retries %doi_bank_retries + 1
707:       set %doi_bank_retries %doi_bank_retries + 1

When it really should look like:

707:       set %doi_bank_retries %doi_bank_retries + 1
707:       set %doi_bank_retries %doi_bank_retries + 1

Title: Re: Not too much of a bug.... finding two instances in a single line.
Post by: Xclio on February 26, 2009, 07:06:16 AM
Nice catch Cerv.
Title: Re: Not too much of a bug.... finding two instances in a single line.
Post by: TrailMyx on February 26, 2009, 08:28:17 AM
Ya, I've been meaning to fix that one.  It worked in version 131, but after I switched to the new editor control, I broke it.  I'll remember to fix that one someday....
Title: Re: Not too much of a bug.... finding two instances in a single line.
Post by: onlyindreams on July 16, 2009, 04:41:06 PM
I know this is an old topic but looking at the lines of code I don't see a difference other than where the green banks are. Will someone who understands scripting elaborate a little for those of us with little knowledge on the subject?
Title: Re: Not too much of a bug.... finding two instances in a single line.
Post by: Cerveza on July 16, 2009, 05:14:50 PM
I was pointing out that when doing a search for the word BANK on a line where the word appears more then once, SUO would list the SAME word as the found item.

Here's another example:

42 onlyindreams is a member of ScriptUO which has a member named onlyindreams

If I were to do a search on a document with that line in it, the correct "found" items should be like this:

42 onlyindreams is a member of ScriptUO which has a member named onlyindreams
42 onlyindreams is a member of ScriptUO which has a member named onlyindreams


You see how it found two instances of the term "onlyindreams" ? SUO was doing this:

42 onlyindreams is a member of ScriptUO which has a member named onlyindreams
42 onlyindreams is a member of ScriptUO which has a member named onlyindreams

Which is kinda correct because it *did* find two instances, it just hilighted the first one found twice instead of hilighting each one.
Title: Re: Not too much of a bug.... finding two instances in a single line.
Post by: onlyindreams on July 17, 2009, 02:11:40 AM
So it should be highlighting the beginning and end of the phrase rather than the beginning of both? Like brackets for the code?
Title: Re: Not too much of a bug.... finding two instances in a single line.
Post by: Cerveza on July 17, 2009, 03:54:33 AM
Right, show me the two separate found items instead of the same found item twice.