Bug 336590: Caret can not be placed after space at the end of a wrapped line in textarea, using the mouse. r+sr=roc

git-svn-id: svn://10.0.0.236/trunk@196314 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
uriber%gmail.com
2006-05-11 16:28:01 +00:00
parent c25bc7a4b3
commit 41ff9bdb2d

View File

@@ -4042,8 +4042,6 @@ void nsTypedSelection::setAnchorFocusRange(PRInt32 indx)
}
else{
mAnchorFocusRange = mRangeArray[indx];
// Make sure the caret appears on the next line, if at a newline
SetInterlinePosition(PR_TRUE);
}
}
@@ -5138,6 +5136,9 @@ nsTypedSelection::AddRange(nsIDOMRange* aRange)
}
setAnchorFocusRange(count -1);
// Make sure the caret appears on the next line, if at a newline
SetInterlinePosition(PR_TRUE);
nsCOMPtr<nsPresContext> presContext;
GetPresContext(getter_AddRefs(presContext));
selectFrames(presContext, aRange, PR_TRUE);