summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Koutcher <thomas.koutcher@online.fr>2022-12-31 15:08:54 +0100
committerThomas Koutcher <thomas.koutcher@online.fr>2022-12-31 15:08:54 +0100
commitabe103d2c3fa17b5efc9a55a0a9b364d02022bf5 (patch)
tree5c35c1d2babf9f20bc6ba4d0462a17507800976a
parentfa9e9c84a64b6c7215685d7a16adeea1206bf632 (diff)
Fix diffstat color for tig log -p
-rw-r--r--src/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/log.c b/src/log.c
index e8f95fe0..b95c87b3 100644
--- a/src/log.c
+++ b/src/log.c
@@ -132,7 +132,7 @@ log_read(struct view *view, struct buffer *buf, bool force_stop)
else if (state->commit_title_read && len < 1) {
state->commit_title_read = false;
state->after_commit_header = true;
- } else if (state->after_commit_header && len < 1) {
+ } else if ((state->after_commit_header && len < 1) || type == LINE_DIFF_START) {
state->after_commit_header = false;
state->reading_diff_stat = true;
} else if (state->reading_diff_stat) {