     for direction in [ forward, backward ]
       @runMovement "#{direction} lineboundary"
       @swapFocusAndAnchor()
+    Movement.lastLineSelection = @selection.toString()
+    console.log "lastLineSelection:", Movement.lastLineSelection
 
   yankLine: ->
     @selectLine()
-    @lastYankedLine = @yank()
 
   # Adapted from: http://roysharon.com/blog/37.
   # I have no idea how this works (smblott, 2015/1/22).


# This prevents printable characters from being passed through to underlying page.  It should, however, allow
# through chrome keyboard shortcuts.  It's a backstop for all of the modes following.

    @protectClipboard =>
      @paste (text) =>
        if text
          lineOriented = text == Movement.lastLineSelection
          if lineOriented
            @runMovement "#{direction} lineboundary"
            text = if direction == forward then "\n" + text else text + "\n"
          DomUtils.simulateTextEntry @element, text
          @runMovement "backward line" if lineOriented

  openLine: (direction) ->
    @runMovement "#{direction} lineboundary"
