Reviewed by Harrison
[WebKit-https.git] / WebCore / khtml / editing / htmlediting.cpp
index 6eae5169043b08d3397a96ba8c956b174afc679a..14d9c0152b8e525010860f4ec2ccc1efb053c1f0 100644 (file)
@@ -1678,6 +1678,7 @@ void DeleteSelectionCommand::handleGeneralDelete()
                 TextImpl *text = static_cast<TextImpl *>(m_downstreamEnd.node());
                 if (m_downstreamEnd.offset() > 0) {
                     deleteTextFromNode(text, 0, m_downstreamEnd.offset());
+                    m_downstreamEnd = Position(text, 0);
                     m_trailingWhitespaceValid = false;
                 }
             }