delta icon indicating copy to clipboard operation
delta copied to clipboard

🚀 Render line numbers as 0 when there is no line number

Open zx8 opened this issue 10 months ago • 0 comments

Using v0.18.2

My current setup is:

--hyperlinks-file-link-format="vscode://file{path}:{line}"

However, when clicking on file links at the top of the diff output (rather than than hunk links), there is no line number, so the link is rendered as:

vscode://file/Users/zx8/example/foo.tf:

And when I click on it, I get a No file or directory error, because the trailing : is treated as part of the path.

If this were rendered as 0 when there is no line number, I think the links would work as expected.

zx8 avatar Feb 26 '25 18:02 zx8