Fixed all tests - full support for collapsed move deletions
This commit is contained in:
		
							parent
							
								
									19723670c4
								
							
						
					
					
						commit
						3b31764b6e
					
				@ -245,7 +245,7 @@ export class YEvent {
 | 
			
		||||
                lastOp.delete += item.length
 | 
			
		||||
              }
 | 
			
		||||
            } else if (item.deleted) {
 | 
			
		||||
              if (!currMoveIsNew && this.deletes(item) && !this.adds(item)) {
 | 
			
		||||
              if (!currMoveIsNew && this.deletes(item) && !this.adds(item) && !this.transaction.prevMoved.has(item)) {
 | 
			
		||||
                if (lastOp === null || lastOp.delete === undefined) {
 | 
			
		||||
                  packOp()
 | 
			
		||||
                  lastOp = { delete: 0 }
 | 
			
		||||
@ -274,7 +274,7 @@ export class YEvent {
 | 
			
		||||
            }
 | 
			
		||||
            item = /** @type {Item} */ (item).right
 | 
			
		||||
          }
 | 
			
		||||
          if (lastOp !== null && lastOp.retain === undefined) {
 | 
			
		||||
          if (lastOp !== null && lastOp.retain == null) {
 | 
			
		||||
            packOp()
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user