- changed title to Caret after Semicolon Doesn't Go to Bitbucket Line Number
Caret after Semicolon Doesn't Go to Bitbucket Line Number
If you place the caret after the semicolon on a Java line, Ctrl-Shift-X,B or C don’t go to the exact line number in Bitbucket; they just go to the file.
Comments (6)
-
reporter -
staff Hm, this is expected behaviour. The link includes line number(s) if you select some text, otherwise the link is just for a file.
As in, no matter where you put the caret, if there’s no text selected, the link won’t contain line number.
Can you confirm you observe this behaviour?
Cheers,
Daniil -
reporter I get the link to the specific line the caret is on (before the semicolon) even if I don’t select any text.
-
staff Ok, thanks for double checking. I’ll look into this, I might’ve reverted the behaviour I described. In that case I should fix the behaviour when the caret is at the end of the line (I guess this is what’s causing what you faced).
Thanks for reporting!
-
reporter np. It’s what IntelliJ’s native “Open on GitHub” does too and avoids confusion when you want to share code with others.
-
staff - changed status to resolved
Fixed in 2020.3.142.
Now line number(s) are always included when the link is created from the file editor.
- Log in to comment