 
   getPointToSearchFrom: (selection, searchFrom) ->
     switch searchFrom
-      when 'head' then swrap(selection).getNormalizedBufferPosition()
+      when 'head' then @getNormalizedHeadBufferPosition(selection)
       when 'start' then swrap(selection).getBufferPositionFor('start')
 
   # Allow override @allowForwarding by 2nd argument.

  @extend()
  member: ['AFunction', 'InnerParagraph']


# FIXME: make Motion.CurrentSelection to TextObject then use concatTextObject
class ACurrentSelectionAndAPersistentSelection extends TextObject
  @extend()


  stopSelection: ->
    @canSelect = false

  getNormalizedHeadBufferPosition: (selection) ->
    head = selection.getHeadBufferPosition()
