From 4f774851c65e0660b48ba639b47262e6283fe497 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Sat, 20 May 2006 17:56:10 +0200 Subject: [PATCH] Remove old window cycling code from before enter request appeared --- tig.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/tig.c b/tig.c index 6c49105..efea6f4 100644 --- a/tig.c +++ b/tig.c @@ -1260,21 +1260,7 @@ open_view(struct view *prev, enum request request, enum open_flags flags) bool split = !!(flags & OPEN_SPLIT); bool reload = !!(flags & OPEN_RELOAD); struct view *view = VIEW(request); - struct view *displayed; - int nviews; - - /* Cycle between displayed views and count the views. */ - foreach_view (displayed, nviews) { - if (prev != view && - view == displayed && - !strcmp(view->vid, prev->vid)) { - current_view = nviews; - /* Blur out the title of the previous view. */ - update_view_title(prev); - report(""); - return; - } - } + int nviews = display[1] ? 2 : 1; if (view == prev && nviews == 1 && !reload) { report("Already in %s view", view->name); -- 2.11.0