Code

Rename foreach_view to foreach_displayed_view
authorJonas Fonseca <fonseca@diku.dk>
Sun, 10 Sep 2006 18:42:17 +0000 (20:42 +0200)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Sun, 10 Sep 2006 18:42:17 +0000 (20:42 +0200)
tig.c

diff --git a/tig.c b/tig.c
index 48fbca0042cac6b65a4ec0742fc0590a853c3918..6518f0d6e7cc8fa67315751af4748ab459274677 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -1152,7 +1152,7 @@ struct view_ops;
 static struct view *display[2];
 static unsigned int current_view;
 
-#define foreach_view(view, i) \
+#define foreach_displayed_view(view, i) \
        for (i = 0; i < ARRAY_SIZE(display) && (view = display[i]); i++)
 
 #define displayed_views()      (display[1] != NULL ? 2 : 1)
@@ -1342,7 +1342,7 @@ resize_display(void)
 
        offset = 0;
 
-       foreach_view (view, i) {
+       foreach_displayed_view (view, i) {
                if (!view->win) {
                        view->win = newwin(view->height, 0, offset, 0);
                        if (!view->win)
@@ -1370,7 +1370,7 @@ redraw_display(void)
        struct view *view;
        int i;
 
-       foreach_view (view, i) {
+       foreach_displayed_view (view, i) {
                redraw_view(view);
                update_view_title(view);
        }
@@ -3125,7 +3125,7 @@ read_prompt(const char *prompt)
                struct view *view;
                int i, key;
 
-               foreach_view (view, i)
+               foreach_displayed_view (view, i)
                        update_view(view);
 
                report("%s%.*s", prompt, pos, buf);
@@ -3420,7 +3420,7 @@ main(int argc, char *argv[])
                int key;
                int i;
 
-               foreach_view (view, i)
+               foreach_displayed_view (view, i)
                        update_view(view);
 
                /* Refresh, accept single keystroke of input */