Bug 484890

Summary: URL hint numbering has offset
Product: [Applications] konsole Reporter: Frank Steinmetzger <dev+kde>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 24.02.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Frank Steinmetzger 2024-04-01 21:07:52 UTC
SUMMARY
When I press Ctrl to get keyboard hints of URLs, there is an offset of 1. Numbering starts at 2, and when I press 2, for example, then the URL labelled with 3 is opened.

STEPS TO REPRODUCE
Have konsole display a few URLs, like in mutt, or an editor.
Trigger URL hints.

OBSERVED RESULT
The numbering labels show their value + 1.


SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3
Kernel Version: 6.8.2-arch2-1 (64-bit)
Graphics Platform: X11
Comment 1 Frank Steinmetzger 2024-04-01 21:55:41 UTC
Addendum with a different observation. I just viewed a message in mutt and wanted to open an address from the message. This time the numbering started at 1, but the offset was 2. In detail:

The mutt sidebar showed two local paths at the left edge (like /var/spool/mail), which got the hints 1 and 2. And then there is one URL in the displayed mail, labelled 3. But I need to press Ctrl+1 to open it. At first I thought this happens because the URL appears a few lines above the two paths. So I mocked it in an editor and moved the URL around, and I still had to press Ctrl+1 when the URL was below the paths. Are local paths perhaps skipped?