From fb32e2f4c19258858610cb5149fb141cb69a2eb3 Mon Sep 17 00:00:00 2001 From: "kin@netscape.com" Date: Thu, 16 Dec 1999 00:59:08 +0000 Subject: [PATCH] Fix for bug #21683: [dogfood] Can't set focus to end of reply message to type Added beginRulesSniffing local variable. r=jfrancis@netscape.com a=chofmann@netscape.com --- editor/base/nsHTMLEditor.cpp | 1 + editor/libeditor/html/nsHTMLEditor.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/editor/base/nsHTMLEditor.cpp b/editor/base/nsHTMLEditor.cpp index 2d01c47703c6..5844c43c543d 100644 --- a/editor/base/nsHTMLEditor.cpp +++ b/editor/base/nsHTMLEditor.cpp @@ -1511,6 +1511,7 @@ NS_IMETHODIMP nsHTMLEditor::InsertBreak() nsresult res; if (!mRules) { return NS_ERROR_NOT_INITIALIZED; } + nsAutoRules beginRulesSniffing(this, kOpInsertBreak, nsIEditor::eNext); nsCOMPtr selection; PRBool cancel, handled; diff --git a/editor/libeditor/html/nsHTMLEditor.cpp b/editor/libeditor/html/nsHTMLEditor.cpp index 2d01c47703c6..5844c43c543d 100644 --- a/editor/libeditor/html/nsHTMLEditor.cpp +++ b/editor/libeditor/html/nsHTMLEditor.cpp @@ -1511,6 +1511,7 @@ NS_IMETHODIMP nsHTMLEditor::InsertBreak() nsresult res; if (!mRules) { return NS_ERROR_NOT_INITIALIZED; } + nsAutoRules beginRulesSniffing(this, kOpInsertBreak, nsIEditor::eNext); nsCOMPtr selection; PRBool cancel, handled;