Closed Bug 78239 Opened 24 years ago Closed 23 years ago

Ctrl-k will not delete blank lines

Categories

(Core :: DOM: Editor, defect, P2)

x86
Linux
defect

Tracking

()

VERIFIED FIXED
mozilla0.9.5

People

(Reporter: bzbarsky, Assigned: kinmoz)

References

Details

(Keywords: access, platform-parity, regression, Whiteboard: fixed on trunk and 0.9.4 branch)

BUILD: Linux 2001-04-30-08 STEPS TO REPRODUCE: 1) Type the following in a <textarea>: aa bb cc 2) Put the caret right before the first b 3) Hit Ctrl-k 4) Hit Ctrl-k a second time EXPECTED RESULTS: Step 4 causes the blank line between "aa" and "cc" to be deleted ACTUAL RESULTS: Step 4 has no effect. This is sort of spun off of bug 77976
Keywords: regression
Accepting -- targeting for m1.0 but will try to find time sooner. I'd like this to work, too, and was bummed when it regressed.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.0
Ah, I just ran across a comment I made long ago in bug 54452 explaining why this regressed (there's a more serious bug, which I was able to work around by regressing this). Adding dependency.
Depends on: 54452
*** Bug 88376 has been marked as a duplicate of this bug. ***
For some reason, in this case, after doing an extend-selection-to-end-of-line, isCollapsed on the selection is false. I haven't been able to ferret out what is actually in the selection yet. Perhaps it should do a check like "is only whitespace" rather than "is collapsed" ...
Kin has a patch in bug 98018 which also cures this one.
Depends on: 98018
Priority: -- → P2
spam composer change
Component: Editor: Core → Editor: Composer
Handing over to Kin since he has the patch which fixes it.
Assignee: akkana → kin
Status: ASSIGNED → NEW
Component: Editor: Composer → Editor: Core
Status: NEW → ASSIGNED
Whiteboard: fixed on trunk, fix not on 0.9.2 and 0.9.4 branches
Target Milestone: mozilla1.0 → mozilla0.9.5
Fix checked into TRUNK: mozilla/editor/base/nsEditor.cpp revision 1.337 Fix checked into the MOZILLA_0_9_4_BRANCH: mozilla/editor/base/nsEditor.cpp revision 1.336.2.1
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Whiteboard: fixed on trunk, fix not on 0.9.2 and 0.9.4 branches → fixed on trunk and 0.9.4 branch
verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.