Easy Bugs
|
10-15-2014, 03:59 PM
Post: #3
|
|||
|
|||
RE: Easy Bugs
(10-15-2014 05:41 AM)Tim Wessman Wrote: Right now, the logic is basically go backwards skipping over ( until it finds a match or hits an invalid name character. If it didn't find anything, move forward to see if there is another match in front of the cursor. I think with minimal changes you could do a "longest match". Keep all your logic the same, but when you find a match, just record the position and length of the match and keep searching. If you find a longer match, record its length and position, otherwise ignore it. This way, if the user types acos2asin, it will find it instead of just asin regardless of where the cursor is. Longest match will probably provide a better user experience. On the other hand, it can potentially get slow, versus interrupting the search at first hit. Just a thought. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
RE: Easy Bugs - Tim Wessman - 10-15-2014, 05:41 AM
RE: Easy Bugs - Claudio L. - 10-15-2014 03:59 PM
RE: Easy Bugs - PANAMATIK - 10-15-2014, 09:53 PM
RE: Easy Bugs - Eddie W. Shore - 10-23-2014, 01:39 PM
RE: Easy Bugs - PANAMATIK - 10-20-2014, 03:08 AM
RE: Easy Bugs - Wolfgang - 10-31-2014, 05:09 PM
RE: Easy Bugs - toml_12953 - 10-31-2014, 05:39 PM
RE: Easy Bugs - Marcus von Cube - 10-31-2014, 08:17 PM
RE: Easy Bugs - Wolfgang - 11-01-2014, 04:56 AM
|
User(s) browsing this thread: 1 Guest(s)