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

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


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

  interprete :(select) =>
