summaryrefslogtreecommitdiffstats
path: root/WebCore/editing/InsertTextCommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/editing/InsertTextCommand.cpp')
-rw-r--r--WebCore/editing/InsertTextCommand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/editing/InsertTextCommand.cpp b/WebCore/editing/InsertTextCommand.cpp
index 52eb12f..cfaf219 100644
--- a/WebCore/editing/InsertTextCommand.cpp
+++ b/WebCore/editing/InsertTextCommand.cpp
@@ -111,7 +111,7 @@ void InsertTextCommand::input(const String& text, bool selectInsertedText)
ASSERT(text.find('\n') == notFound);
- if (endingSelection().isNone())
+ if (!endingSelection().isNonOrphanedCaretOrRange())
return;
// Delete the current selection.