Obviously you let the pedal tqake up the slack when you disconnected the cable at gearbox ? before the pedal.
Just shove a thin flat screwdriver between the quadrant and ratchet adjuster teeth and it will go ping and unadjust then a few pumps to self adjust on the pedal and all is well again.
tabetha