Skip to content

[gui] Fix git blame not showing on the first line - #5143

Open
barnabasdomozi wants to merge 1 commit into
Ericsson:masterfrom
barnabasdomozi:fix_gui_git_blame
Open

barnabasdomozi wants to merge 1 commit into
Ericsson:masterfrom
barnabasdomozi:fix_gui_git_blame

Conversation

@barnabasdomozi

Copy link
Copy Markdown
Collaborator

The blame gutter used !line?.from to skip empty lines. The first line's offset is 0, so !0 was true and its blame marker was dropped. Files whose only commit starts on line 1 showed no blame at all.

Check line?.from == null instead, so offset 0 is treated as valid.

The blame gutter used `!line?.from` to skip empty lines. The first
line's offset is 0, so `!0` was true and its blame marker was dropped.
Files whose only commit starts on line 1 showed no blame at all.

Check `line?.from == null` instead, so offset 0 is treated as valid.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant