code: func (edit *TextEditor) Delete(where int, len int) {
  	/* delete characters while updating undo */
  	edit.makeundoDelete(where, len)
  
  	edit.Buffer = strDeleteText(edit.Buffer, where, len)
  	edit.HasPreferredX = false
  }
docs: // Deletes a chunk of text in the editor.