Skip to content

Commit

Permalink
Update %(text) when navigating diff contents
Browse files Browse the repository at this point in the history
Previously we'd only update %(text) in the header of the diff view.  Also
update %(text) when inside the diff contents. This allows to determine if
the current line is added, deleted or context, which allows to give precise
location information when talking to the GitLab API for example.
  • Loading branch information
krobelus committed Feb 10, 2021
1 parent a86b8e1 commit 6db4cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -830,8 +830,8 @@ diff_common_select(struct view *view, struct line *line, const char *changes_msg
view->env->blob[0] = 0;
} else {
string_ncopy(view->ref, view->ops->id, strlen(view->ops->id));
pager_select(view, line);
}
pager_select(view, line);
}
}

Expand Down

0 comments on commit 6db4cfa

Please sign in to comment.