summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e733ee5)
raw | patch | inline | side by side (parent: e733ee5)
author | Jonas Fonseca <fonseca@diku.dk> | |
Sun, 10 Sep 2006 18:42:17 +0000 (20:42 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Sun, 10 Sep 2006 18:42:17 +0000 (20:42 +0200) |
tig.c | patch | blob | history |
index 48fbca0042cac6b65a4ec0742fc0590a853c3918..6518f0d6e7cc8fa67315751af4748ab459274677 100644 (file)
--- a/tig.c
+++ b/tig.c
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)
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)
struct view *view;
int i;
- foreach_view (view, i) {
+ foreach_displayed_view (view, i) {
redraw_view(view);
update_view_title(view);
}
struct view *view;
int i, key;
- foreach_view (view, i)
+ foreach_displayed_view (view, i)
update_view(view);
report("%s%.*s", prompt, pos, buf);
int key;
int i;
- foreach_view (view, i)
+ foreach_displayed_view (view, i)
update_view(view);
/* Refresh, accept single keystroke of input */