summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 49dc403)
raw | patch | inline | side by side (parent: 49dc403)
author | Jonas Fonseca <fonseca@diku.dk> | |
Wed, 21 Jan 2009 22:14:17 +0000 (23:14 +0100) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Wed, 21 Jan 2009 22:15:17 +0000 (23:15 +0100) |
tig.c | patch | blob | history |
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;
}