         text = text[..start-1] + add + text[end..]
         start += add.length
         end += add.length
-        print [text, [start, end], s]
         @set_text_state([text, [start, end], s])
 
     indent: =>

            @$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)

            @update()
            key = keybord_key(e)

            if key == "space" or key == "enter" or key == "backspace" or key == "tab"
                @undo.snapshot()

