summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4f6de33)
raw | patch | inline | side by side (parent: 4f6de33)
author | Jonas Fonseca <fonseca@diku.dk> | |
Mon, 28 Apr 2008 19:05:47 +0000 (21:05 +0200) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Mon, 28 Apr 2008 19:51:01 +0000 (21:51 +0200) |
Move call to end_update() if view->pipe is non-NULL from begin_update()
to open_view() so it is called also for views that defines an open()
operation.
Triggered by Jeff King's "show blame for parent" patch posted to the
git mailing list in <20080410040213.GA29618@sigill.intra.peff.net>.
to open_view() so it is called also for views that defines an open()
operation.
Triggered by Jeff King's "show blame for parent" patch posted to the
git mailing list in <20080410040213.GA29618@sigill.intra.peff.net>.
tig.c | patch | blob | history |
index 14fbf35a9f834eef1d392848a314944a37a3516c..d96b834517d00d2b54e9186a71bf6483cf14d35a 100644 (file)
--- a/tig.c
+++ b/tig.c
static bool
begin_update(struct view *view)
{
- if (view->pipe)
- end_update(view, TRUE);
-
if (opt_cmd[0]) {
string_copy(view->cmd, opt_cmd);
opt_cmd[0] = 0;
(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);