Possible Broken Shifter My right Shimano shifter is now loose and clicking it doesn't do anything to the rear derailleur. I've checked the derailleur and it still works fine. How can I fix the shifter?

Edit: It's a road bike cable shifter; it has the brakes with it as well so it's a brifter (?). I have potentially found the problem. Something in the cable seems to have snapped as the cable has come out of the shifter. Any way to fix that?

Edit 2: I realised that someone shared a link on how to replace the cable in the comments so this question has been answered. Thank you everyone.
Based on the edit, put a new cable on. And while you're at it, you may as well replace the cable housing.