index 79b23e01ba78784573f2c5d2e564068c0b689089..6b0aa08dfbd965f278820ba6247ded6f1d3b2e25 100644 (file)
--- a/tig.c
+++ b/tig.c
for (line = view->line; line < view->line + view->lines; line++) {
struct status *pos = line->data;
- if (line->type == type && pos &&
- !strcmp(status->new.name, pos->new.name))
+ if (line->type != type)
+ continue;
+ if (!pos && (!status || !status->status))
+ return TRUE;
+ if (pos && !strcmp(status->new.name, pos->new.name))
return TRUE;
}