Closed Bug 91991 Opened 23 years ago Closed 23 years ago

middle-click paste after end of line puts text on previous line

Categories

(MailNews Core :: Composition, defect, P3)

x86
Linux
defect

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 57913
mozilla1.0

People

(Reporter: alex, Assigned: mjudge)

Details

STEPS TO REPRODUCE:

* Open a new Compose window
* Enter enough text to span three lines, but with no line breaks (only spaces)

e.g.

Mozilla Mail & News is a cross platform client with 
support for SMTP, POP3, IMAP, NNTP, a 
configurable three pane UI, searching and filtering,
address books, and multiple identities.

* Highlight (left-click select) a word of text (e.g. "test")

* Move your cursor just to the right of the "a" in the second line

* Middle click (paste)

EXPECTED BEHAVIOR: 
The word "test" should appear after the word "a", leaving either "a test",
"atest", or "testconfigurable" (it really should be a smart paste, which would
be "a test configurable", but that's probably too much to hope for in a
non-MacOS world).

ACTUAL BEHAVIOR:
The word "test" appears before the word "support", leaving "testsupport" at the
beginning of the second line

This is different from what happens if you use the menu or ^V paste -- that
works as expected (probably because it uses the actual cursor position, and
doesn't have to map the cursor position, which algorithm is probably busted).

Note that while entering this bug I noticed it happens in Browser text boxes
too, e.g. the Description field on enter_bug.cgi, though it is less predictable
in that case.  It also happens in the Composer : Source view, but again, it's
less predictable where it will end up.

Repro'd with nightly build 20010723
Reassign to editor team
Assignee: ducarroz → beppe
assign to mjudge, cc kin
Assignee: beppe → mjudge
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Target Milestone: --- → mozilla1.0

*** This bug has been marked as a duplicate of 57913 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
verified as dup 
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.