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)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 17
People
(Reporter: vporof, Assigned: vporof)
References
Details
Attachments
(1 file)
5.73 KB,
patch
|
rcampbell
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•13 years ago
|
||
s/todos/baz :)
Assignee | ||
Comment 2•13 years ago
|
||
Attachment #650180 -
Flags: review?(rcampbell)
Comment 3•13 years ago
|
||
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+
Assignee | ||
Comment 4•13 years ago
|
||
(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.
Assignee | ||
Comment 5•13 years ago
|
||
Whiteboard: [fixed-in-fx-team]
Comment 6•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 17
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•