 
   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) =>

      @replTextEditor.insertText(stripAnsi(""+data))
      @lastBuf = @replTextEditor.getCursorBufferPosition()
    else
      @replTextEditor.insertText(stripAnsi(""+data),{select:true})
      console.log(@replTextEditor.getSelectedText())
      #@replTextEditor.moveToBottom()
      #@replTextEditor.moveToEndOfLine()
      #@lastBuf = @replTextEditor.getCursorBufferPosition()

  dealWithBackspace :() =>
    buf = @replTextEditor.getCursorBufferPosition()
    if(@lastBuf.row>buf.row || (@lastBuf.row == buf.row && @lastBuf.column >= buf.column))
      @ignore = true
      @replTextEditor.insertText(' ')
      @ignore = false
      return

  dealWithDelete :() =>
