keep cursor at current line number when delete buffer.