gitlinker.nvim icon indicating copy to clipboard operation
gitlinker.nvim copied to clipboard

only add end line number to url if different than start line number

Open schoblaska opened this issue 2 years ago • 0 comments

I use add_current_line_on_normal_mode = false. When I want to generate a link to a specific line I use visual mode, but noticed that the URLs link to a one-line range (github.com/org/repo/file#L3-L3) instead of linking to the line (github.com/org/repo/file#L3). This change makes it so that the ending line number is only appended to the URL if it's different than the starting line number.

schoblaska avatar Mar 07 '23 17:03 schoblaska