Author Topic: Not too much of a bug.... finding two instances in a single line.  (Read 11332 times)

0 Members and 1 Guest are viewing this topic.

Offline CervezaTopic starter

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
0
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

XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline Xclio

  • Officially "The MAN"
  • Elite
  • *
  • *
  • Posts: 981
  • Activity:
    0%
  • Reputation Power: 9
  • Xclio has no influence.
  • Gender: Male
  • Respect: +56
  • Referrals: 1
    • View Profile
Re: Not too much of a bug.... finding two instances in a single line.
« Reply #1 on: February 26, 2009, 07:06:16 AM »
0
Nice catch Cerv.

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Not too much of a bug.... finding two instances in a single line.
« Reply #2 on: February 26, 2009, 08:28:17 AM »
0
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....
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline onlyindreams

  • Spaz Ferret's Personal Assistant
  • Insane Scripter
  • *
  • Posts: 1305
  • Activity:
    0%
  • Reputation Power: 13
  • onlyindreams barely matters.onlyindreams barely matters.
  • Respect: +96
  • Referrals: 2
    • View Profile
Re: Not too much of a bug.... finding two instances in a single line.
« Reply #3 on: July 16, 2009, 04:41:06 PM »
0
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?

Offline CervezaTopic starter

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Not too much of a bug.... finding two instances in a single line.
« Reply #4 on: July 16, 2009, 05:14:50 PM »
0
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.
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline onlyindreams

  • Spaz Ferret's Personal Assistant
  • Insane Scripter
  • *
  • Posts: 1305
  • Activity:
    0%
  • Reputation Power: 13
  • onlyindreams barely matters.onlyindreams barely matters.
  • Respect: +96
  • Referrals: 2
    • View Profile
Re: Not too much of a bug.... finding two instances in a single line.
« Reply #5 on: July 17, 2009, 02:11:40 AM »
0
So it should be highlighting the beginning and end of the phrase rather than the beginning of both? Like brackets for the code?

Offline CervezaTopic starter

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Not too much of a bug.... finding two instances in a single line.
« Reply #6 on: July 17, 2009, 03:54:33 AM »
0
Right, show me the two separate found items instead of the same found item twice.
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Tags: