Closed Bug 1639747 Opened 4 years ago Closed 4 years ago

Clicking past end of line selects the last word on the same line

Categories

(Webtools :: Searchfox, defect)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: agashlin, Assigned: emilio)

Details

Attachments

(1 file)

Browse a file that has alphanumeric words at the end of a line, this Python script is a good example. Click in space off to the right (for instance to the right of one of the import lines), if you happened to click on a line with a word at the end, a "Search for the substring" popup will appear with that last word.

This doesn't happen with styled text, like the license comment block at the top, I think because that text is in a <span>, so the whitespace isn't part of the node with the text. And it doesn't happen with lines ending in a symbol, so not in C++ or JavaScript. I see it most often in NSIS but Python has it as well. This is particularly irritating for me as I usually click in that space to dismiss a another popup.

I think this is a regression from my context menu changes from a while ago, and it seems pretty easy to fix, I can take a look when I find some time.

Flags: needinfo?(emilio)
Attached file GitHub Pull Request
Assignee: nobody → emilio
Flags: needinfo?(emilio)

I guess that landed, so let's call it fixed. It should be live on the next indexing run.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED

I checked today and can't reproduce the issue, thanks for the quick fix!

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: