fix for 67847: forward delete can make caret go to start of doc. r=kin; sr=sfraser; a=asa

git-svn-id: svn://10.0.0.236/trunk@96972 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jfrancis%netscape.com
2001-06-12 22:21:12 +00:00
parent 389a7b7bee
commit 0ed7094afa
4 changed files with 10 additions and 18 deletions

View File

@@ -903,11 +903,7 @@ NS_IMETHODIMP nsPlaintextEditor::DeleteSelection(nsIEditor::EDirection aAction)
break;
case eToEndOfLine:
result = selCont->IntraLineMove(PR_TRUE, PR_TRUE);
// Bugs 54449/54452: the selection jumps to the wrong place
// when deleting past a <br> and action is eNext or ePrev,
// so setting action to eNone makes delete-to-end marginally usable.
// aAction should really be set to eNext
aAction = eNone;
aAction = eNext;
break;
default: // avoid several compiler warnings
result = NS_OK;