summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c36979d)
raw | patch | inline | side by side (parent: c36979d)
author | Jonas Fonseca <fonseca@diku.dk> | |
Sat, 22 Mar 2008 20:35:31 +0000 (21:35 +0100) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Sat, 22 Mar 2008 20:35:31 +0000 (21:35 +0100) |
.. by avoiding end_update() call after last read line.
tig.c | patch | blob | history |
index f8132fd0f8aeaaf096aea74a0e2cd041edbfe2f7..2551ba313bf6d77556df908f96f0028cc4762fb1 100644 (file)
--- a/tig.c
+++ b/tig.c
report("Allocation failure");
end:
- view->ops->read(view, NULL);
- end_update(view);
+ if (view->ops->read(view, NULL))
+ end_update(view);
return FALSE;
}
enum line_type type;
bool first_read = view->lines == 0;
+ if (!text)
+ return TRUE;
if (textlen <= SIZEOF_TREE_ATTR)
return FALSE;