Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Extra line included when `Open on GitHub` is called with a selection #1843
Comments
|
Good catch! |
|
Actually, I'm having a hard time reproducing this behavior. The right lines always seem to be highlighted for me. |
|
@meaghanlewis i was able to repro by selecting the lines in @jcansdale's screenshots: VisualStudio/src/GitHub.VisualStudio/Commands/CopyLinkCommand.cs Lines 49 to 53 in 8651fe8 |
You'll probably find this happens when using the keyboard rather than the mouse to select. The reason is that you'll tend to start (or end) the selection on the line below the selected area. If you start your selection at the bottom, this extra line will be completely invisible. If you start your selection at the top, this extra line will be obscured by the blinking caret. I'm guessing that whoever tested this in the past used the mouse. Initially I was confused because it seemed to sometimes happen and sometimes not happen. Does that make sense? |
NOTE: Use the keyboard rather than the mouse to select:
GitHub > Open on GitHubAlternatively:
GitHub > Copy link to clipboardGitHub > Open from clipboardThe text was updated successfully, but these errors were encountered: