Bug 243931 - GTK2 build on AIX: Caret misplaced when inserting RTL input into LTR text.

Patch contributed by Lina Kemmel <lkemmel@il.ibm.com>.
r=smontagu@smontagu.org, sr=roc@ocallahan.org
This commit is contained in:
pkw%us.ibm.com 2004-07-20 15:53:35 +00:00
parent a37ff78a75
commit d42947291e

View File

@ -400,7 +400,8 @@ nsHTMLEditRules::AfterEdit(PRInt32 action, nsIEditor::EDirection aDirection)
*
* So we set the cursor Bidi level to UNDEFINED here, and the caret code will set it correctly later
*/
if (action == nsEditor::kOpInsertText) {
if (action == nsEditor::kOpInsertText
|| action == nsEditor::kOpInsertIMEText) {
nsCOMPtr<nsIPresShell> shell;
mEditor->GetPresShell(getter_AddRefs(shell));
if (shell) {