             @$pad[0].selectionEnd = @$pad[0].selectionStart
         else
             @$pad[0].selectionStart = @lines[start][1]
-
             @$pad[0].selectionEnd = @$pad[0].selectionStart + new_length
-
-
 
     set_text: (text) ->
         @$pad.val(text)


    enter: ->
        query = @$input.val()
        print "find", query

        at = editor.$pad[0].selectionStart
        end = editor.$pad[0].selectionEnd

        return [start, end]

    tab: =>
        if @autocomplete()
            return
        @indent()
