From 59333a3f4eab61103227907246811a7bdea0e879 Mon Sep 17 00:00:00 2001 From: "uriber%gmail.com" Date: Wed, 19 Apr 2006 20:21:25 +0000 Subject: [PATCH] Set the hint to HINTRIGHT when setting selection programatically. bug=334256 r+sr=roc git-svn-id: svn://10.0.0.236/trunk@194699 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsSelection.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mozilla/layout/generic/nsSelection.cpp b/mozilla/layout/generic/nsSelection.cpp index 7b15da1a2c6..fa656903817 100644 --- a/mozilla/layout/generic/nsSelection.cpp +++ b/mozilla/layout/generic/nsSelection.cpp @@ -4415,6 +4415,8 @@ 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); } }