Skip to content

Commit 013c411

Browse files
committed
Refresh the view when toggling date-use-author
This is a complement to 7351f17. Reported-by: PaulChanHK <PaulChanHK@users.noreply.github.com>
1 parent b145c7c commit 013c411

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

include/tig/options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ OPTION_INFO(DEFINE_OPTION_EXTERNS)
110110

111111
#define DATE_COLUMN_OPTIONS(_) \
112112
_(display, enum date, VIEW_NO_FLAGS) \
113-
_(use_author, bool, VIEW_NO_FLAGS) \
113+
_(use_author, bool, VIEW_BLAME_LIKE | VIEW_LOG_LIKE) \
114114
_(local, bool, VIEW_NO_FLAGS) \
115115
_(format, const char *, VIEW_NO_FLAGS) \
116116
_(width, int, VIEW_NO_FLAGS) \

src/blame.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ blame_select(struct view *view, struct line *line)
502502
static struct view_ops blame_ops = {
503503
"line",
504504
argv_env.commit,
505-
VIEW_SEND_CHILD_ENTER | VIEW_BLAME_LIKE,
505+
VIEW_SEND_CHILD_ENTER | VIEW_BLAME_LIKE | VIEW_REFRESH,
506506
sizeof(struct blame_state),
507507
blame_open,
508508
blame_read,

src/refs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ refs_select(struct view *view, struct line *line)
256256
static struct view_ops refs_ops = {
257257
"reference",
258258
argv_env.head,
259-
VIEW_REFRESH | VIEW_SORTABLE,
259+
VIEW_REFRESH | VIEW_SORTABLE | VIEW_BLAME_LIKE,
260260
0,
261261
refs_open,
262262
refs_read,

src/tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ tree_open(struct view *view, enum open_flags flags)
488488
static struct view_ops tree_ops = {
489489
"file",
490490
argv_env.commit,
491-
VIEW_SEND_CHILD_ENTER | VIEW_SORTABLE,
491+
VIEW_SEND_CHILD_ENTER | VIEW_SORTABLE | VIEW_BLAME_LIKE | VIEW_REFRESH,
492492
sizeof(struct tree_state),
493493
tree_open,
494494
tree_read,

0 commit comments

Comments
 (0)