summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: beaef00)
raw | patch | inline | side by side (parent: beaef00)
author | Jonas Fonseca <fonseca@diku.dk> | |
Wed, 21 Jan 2009 15:27:15 +0000 (16:27 +0100) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Wed, 21 Jan 2009 22:09:27 +0000 (23:09 +0100) |
Move call to end_update() to begin_update() so checks for view content
is honored in the case where no reloading is necessary.
is honored in the case where no reloading is necessary.
tig.c | patch | blob | history |
index f34334ce7e15682850669743923f75d1c7900fd7..79b23e01ba78784573f2c5d2e564068c0b689089 100644 (file)
--- a/tig.c
+++ b/tig.c
static bool
begin_update(struct view *view, bool refresh)
{
+ if (view->pipe)
+ end_update(view, TRUE);
+
if (refresh) {
if (!start_io(&view->io))
return FALSE;
(nviews == 1 && base_view != display[0]))
resize_display();
- if (view->pipe)
- end_update(view, TRUE);
-
if (view->ops->open) {
if (!view->ops->open(view)) {
report("Failed to load %s view", view->name);