This commit is contained in:
Kevin Jahns
2015-04-28 16:07:45 +02:00
parent 85d85540e7
commit bad6c913fc
11 changed files with 206 additions and 178 deletions

View File

@@ -550,7 +550,11 @@ module.exports = function() {
};
ReplaceManager.prototype.deleteContent = function() {
(new ops.Delete(null, void 0, this.getLastOperation().uid)).execute();
var last_op;
last_op = this.getLastOperation();
if ((!last_op.isDeleted()) && last_op.type !== "Delimiter") {
(new ops.Delete(null, void 0, this.getLastOperation().uid)).execute();
}
return void 0;
};