mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-05 10:23:39 +00:00
revert fixed: premature optimization
This commit is contained in:
@@ -346,7 +346,7 @@ _oncontextmenuhandler = function () { return false; };
|
||||
}
|
||||
|
||||
// newline entered in its own line-> move down instead of re-layouting
|
||||
if (newLength > oldLength && newLineFragment._range.length == 1 && oldLineFragment._range.length > 1 && newLineFragment._range.location === oldLineFragment._range.location)
|
||||
if (newLength > oldLength && newLineFragment._range.length == 1 && oldLineFragment._range.length > 1 && newLineFragment._range.location === oldLineFragment._range.location && newLineFragment._isLast)
|
||||
{
|
||||
isIdentical = YES;
|
||||
startLineForDOMRemoval--;
|
||||
|
||||
Reference in New Issue
Block a user