Fix hard-wrapped HTTP links opening

Fixed an issue where HTTP links that wrap across multiple lines in the terminal would open multiple times when clicked. The fix adds proper handling for detecting and activating wrapped URLs exactly once, with safeguards to prevent duplicate link activation.