Skip to content

Commit

Permalink
Refresh the view when toggling date-use-author
Browse files Browse the repository at this point in the history
This is a complement to 7351f17.

Reported-by: PaulChanHK <[email protected]>
  • Loading branch information
koutcher committed Nov 30, 2024
1 parent b145c7c commit 013c411
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/tig/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ OPTION_INFO(DEFINE_OPTION_EXTERNS)

#define DATE_COLUMN_OPTIONS(_) \
_(display, enum date, VIEW_NO_FLAGS) \
_(use_author, bool, VIEW_NO_FLAGS) \
_(use_author, bool, VIEW_BLAME_LIKE | VIEW_LOG_LIKE) \
_(local, bool, VIEW_NO_FLAGS) \
_(format, const char *, VIEW_NO_FLAGS) \
_(width, int, VIEW_NO_FLAGS) \
Expand Down
2 changes: 1 addition & 1 deletion src/blame.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ blame_select(struct view *view, struct line *line)
static struct view_ops blame_ops = {
"line",
argv_env.commit,
VIEW_SEND_CHILD_ENTER | VIEW_BLAME_LIKE,
VIEW_SEND_CHILD_ENTER | VIEW_BLAME_LIKE | VIEW_REFRESH,
sizeof(struct blame_state),
blame_open,
blame_read,
Expand Down
2 changes: 1 addition & 1 deletion src/refs.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ refs_select(struct view *view, struct line *line)
static struct view_ops refs_ops = {
"reference",
argv_env.head,
VIEW_REFRESH | VIEW_SORTABLE,
VIEW_REFRESH | VIEW_SORTABLE | VIEW_BLAME_LIKE,
0,
refs_open,
refs_read,
Expand Down
2 changes: 1 addition & 1 deletion src/tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ tree_open(struct view *view, enum open_flags flags)
static struct view_ops tree_ops = {
"file",
argv_env.commit,
VIEW_SEND_CHILD_ENTER | VIEW_SORTABLE,
VIEW_SEND_CHILD_ENTER | VIEW_SORTABLE | VIEW_BLAME_LIKE | VIEW_REFRESH,
sizeof(struct tree_state),
tree_open,
tree_read,
Expand Down

0 comments on commit 013c411

Please sign in to comment.