Closed
Bug 790576
Opened 12 years ago
Closed 12 years ago
When jumping line numbers, pressing UP/DOWN should know how to increment/decrement
Categories
(DevTools :: Debugger, enhancement, P3)
DevTools
Debugger
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 20
People
(Reporter: vporof, Assigned: vporof)
Details
(Whiteboard: [fixed-in-fx-team])
Attachments
(2 files)
4.65 KB,
patch
|
past
:
review+
|
Details | Diff | Splinter Review |
7.67 KB,
patch
|
Details | Diff | Splinter Review |
While doing a :n search, pressing UP would make that :n+1, DOWN :n-1 Also wrap around.
Assignee | ||
Updated•12 years ago
|
Severity: normal → enhancement
Priority: -- → P3
Assignee | ||
Updated•12 years ago
|
Status: NEW → ASSIGNED
QA Contact: vporof
Assignee | ||
Updated•12 years ago
|
QA Contact: vporof
Assignee | ||
Comment 2•12 years ago
|
||
Easy peasy. I know we also talked about implementing Accel+G and Accel+Shift+G as a way of navigating through results, to be in line with most editors, so I added these here as well.
Attachment #686087 -
Flags: review?(past)
Comment 3•12 years ago
|
||
Comment on attachment 686087 [details] [diff] [review] v1 Review of attachment 686087 [details] [diff] [review]: ----------------------------------------------------------------- I like it, but it needs to do some bounds checking. As it is I can decrease the line number until it reaches 0, which is not a valid line number, and then doesn't increase again by the down arrow. Also if I keep pressing down it will go beneath the last line and keep adding empty lines to the editor. That may become useful when it stops being read-only, but it's annoying now. Adding tests for those cases would be nice, too. r=me with those fixed.
Attachment #686087 -
Flags: review?(past) → review+
Assignee | ||
Comment 4•12 years ago
|
||
Right, I was planning to do that! Don't know why I forgot about it.
Assignee | ||
Comment 5•12 years ago
|
||
Addressed comments and clamped the line boundaries to 1 .. editor.getLineCount().
Assignee | ||
Comment 6•12 years ago
|
||
Try: https://tbpl.mozilla.org/?tree=Try&rev=61373316b732
Assignee | ||
Comment 7•12 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/f28ab5d9dcc9
Whiteboard: [fixed-in-fx-team]
Comment 8•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/f28ab5d9dcc9
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Target Milestone: --- → Firefox 20
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•