From: Jonas Fonseca Date: Tue, 21 Sep 2010 12:38:11 +0000 (-0400) Subject: Fix 'tig show ' fix which causes empty tree views X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f7efb4dad86bc0317f18817d243c5d7b015cdbd6;p=tig.git Fix 'tig show ' fix which causes empty tree views Introduced by 80e97cdd456dfe71d0dbf32d77a73bb5a2ab158e. --- diff --git a/NEWS b/NEWS index a9cbe07..210a847 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,7 @@ tig master Bug fixes: + - Fix regression causing empty tree view. - Fix set_tabsize() compile error for older versions of ncurses. tig-0.16.1 diff --git a/tig.c b/tig.c index 01b55d7..37a779c 100644 --- a/tig.c +++ b/tig.c @@ -3332,7 +3332,7 @@ static bool prepare_io(struct view *view, const char *dir, const char *argv[], bool replace) { view->dir = dir; - return format_argv(&view->argv, argv, replace, !view->parent); + return format_argv(&view->argv, argv, replace, !view->prev); } static bool