 
   dealWithInsert :(event) =>
     buf = @replTextEditor.getCursorBufferPosition()
-    if(@lastBuf.row>buf.row || (@lastBuf.row == buf.row && @lastBuf.column > buf.column))
+    if !@ignore && (@lastBuf.row>buf.row || (@lastBuf.row == buf.row && @lastBuf.column > buf.column))
       event.cancel()
 
   interprete :(select) =>

  dealWithBackspace :() =>
    buf = @replTextEditor.getCursorBufferPosition()
    if(@lastBuf.row>buf.row || (@lastBuf.row == buf.row && @lastBuf.column >= buf.column))
      console.log("wrong way")
      @replTextEditor.selectToBufferPosition(buf)
      @replTextEditor.insertText(' ')
      return

  dealWithDelete :() =>

    #@subscribe = new CompositeDisposable
    format = new REPLFormat("../../Repls/"+file) # new REPLFormat(@key)
    @lastBuf = 0
    @ignore = false
    #@minimaltext = ""
    uri = "REPL: "+@grammarName
    atom.workspace.open(uri,split:'right').done (textEditor) =>
