import { joinPoint } from "./../../pm/transform.js";
const joinItemBackward = () => ({ state, dispatch, tr }) => {
  try {
    const point = joinPoint(state.doc, state.selection.$from.pos, -1);
    if (point === null || point === void 0) {
      return false;
    }
    tr.join(point, 2);
    if (dispatch) {
      dispatch(tr);
    }
    return true;
  } catch {
    return false;
  }
};
export {
  joinItemBackward
};
//# sourceMappingURL=join-item-backward.js.map
