Code

Fix updating of the view title to show the current position in the view
authorJonas Fonseca <fonseca@diku.dk>
Sun, 19 Aug 2007 08:44:39 +0000 (10:44 +0200)
committerJonas Fonseca <fonseca@diku.dk>
Sun, 19 Aug 2007 08:44:39 +0000 (10:44 +0200)
tig.c

diff --git a/tig.c b/tig.c
index 7c380e4ef9e5ab8dcfad29697d2547cabb36f840..02280070025b7a060ed2708b4d8a34b107cc2099 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -1371,7 +1371,7 @@ update_view_title(struct view *view)
 
        assert(view_is_displayed(view));
 
-       if (!VIEW(REQ_VIEW_STATUS) && (view->lines || view->pipe)) {
+       if (view != VIEW(REQ_VIEW_STATUS) && (view->lines || view->pipe)) {
                unsigned int view_lines = view->offset + view->height;
                unsigned int lines = view->lines
                                   ? MIN(view_lines, view->lines) * 100 / view->lines