Skip to content

Commit e4e63b9

Browse files
committed
Fix empty blame view when opened from the diff view on i586
The regression was introduced by 2a8ef0f. Fixes #1362
1 parent 8fff317 commit e4e63b9

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

NEWS.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Release notes
22
=============
33

4+
master
5+
------
6+
7+
Bug fixes:
8+
9+
- Fix empty blame view when opened from the diff view on i586. (#1362)
10+
411
tig-2.5.11
512
----------
613
@@ -26,6 +33,7 @@ Improvements:
2633
- Allow different colors for all references types.
2734
- Enable search in sections titles. (#1043)
2835
- Show committer date by default in the date column. (#294)
36+
- Update utf8proc to v2.10.0, supporting Unicode 16.
2937
- Only show stash, notes and prefetch in the refs view when
3038
invoked with `tig refs --all`. (#1359)
3139

src/diff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ diff_trace_origin(struct view *view, enum request request, struct line *line)
698698
}
699699

700700
string_ncopy(view->env->file, commit.filename, strlen(commit.filename));
701-
string_copy(request == REQ_VIEW_BLAME ? view->env->ref : view->env->commit, header.id);
701+
string_copy_rev(request == REQ_VIEW_BLAME ? view->env->ref : view->env->commit, header.id);
702702
view->env->goto_lineno = header.orig_lineno - 1;
703703

704704
return request;

0 commit comments

Comments
 (0)