summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f6da0b6)
raw | patch | inline | side by side (parent: f6da0b6)
author | Jonas Fonseca <fonseca@diku.dk> | |
Sat, 20 May 2006 15:56:10 +0000 (17:56 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Sat, 20 May 2006 15:56:10 +0000 (17:56 +0200) |
tig.c | patch | blob | history |
index 6c49105629212a0bb77a27400933da4006ea6698..efea6f4ad4bcb9cc8d6921e22ff8f5d54993da82 100644 (file)
--- a/tig.c
+++ b/tig.c
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);