offsetToWordCursor = (lineCursor, left, right) => {
  // Deep clone cursor start and end
  const start = deepClone(lineCursor.start)
  const end = deepClone(lineCursor.end)
  start.offset = left
  end.offset = right
  return { start, end }
}
Translate a left and right offset from a word in `line` into a cursor with
the given line cursor.

@param {*} lineCursor The original line cursor.
@param {number} left Start offset/index of word in `lineCursor`.
@param {number} right End offset/index of word in `lineCursor`.
@returns {*} Return a cursor of the word selected in `lineCursor`(e.g.
             "foo >bar< foo" where `>`/`<` start and end offset).