Closed Bug 780631 Opened 13 years ago Closed 13 years ago

Don't change the selected script while filtering if the file part from the search expression hasn't changed

Categories

(DevTools :: Debugger, defect, P3)

12 Branch
defect

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 17

People

(Reporter: vporof, Assigned: vporof)

References

Details

Attachments

(1 file)

If there are two very similarly named files, for example: foo/bar/baz.js baz.js ...then when trying a filter like baz.js#token, for each letter entered in the #token, the selected script switches to `foo/bar/todos.js` if the previously selected script was `todos.js`. Thus, the script always switches to the first found mach. This annoyed me today.
s/todos/baz :)
Attached patch v1Splinter Review
Attachment #650180 - Flags: review?(rcampbell)
Blocks: 774788
Comment on attachment 650180 [details] [diff] [review] v1 - if (token.length) { + if (this._prevSearchedToken !== token && token.length > 0) { could just use && token.length but OK for highlighting you have a number there.
Attachment #650180 - Flags: review?(rcampbell) → review+
(In reply to Rob Campbell [:rc] (:robcee) from comment #3) > Comment on attachment 650180 [details] [diff] [review] > v1 > > - if (token.length) { > + if (this._prevSearchedToken !== token && token.length > 0) { > > could just use && token.length but OK for highlighting you have a number > there. Yeah, that's exactly what I was going for. I bit myself with this here at some point sometime.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 17
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: