       # Move a clone into position.
       (clone = @block.clone()).moveTo editor.tree.getTokenAtLocation @before
 
+      # If the block was the lasso select, register it
+      # as such.
+      if @block.type is 'segment' and @block.isLassoSegment
+        editor.lassoSegment = @block
+
       # Move the cursor to the end of it.
       return clone.end
 

          @redrawMain()

        @copyPasteInput.setSelectionRange 0, @copyPasteInput.value.length

  hook 'populate', 0, ->
    setTimeout (=>

        @iceElement.focus()

    pressedVKey = false
    pressedXKey = false

    @copyPasteInput.addEventListener 'keydown', (event) ->
      if event.keyCode is 86
        pressedVKey = true
      else if event.keyCode is 88
        pressedXKey = true

    @copyPasteInput.addEventListener 'keyup', (event) ->
      if event.keyCode is 86
        pressedVKey = false
      else if event.keyCode is 88
        pressedXKey = false

    @copyPasteInput.addEventListener 'input', =>
      if pressedVKey
