summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 20bb5e1)
raw | patch | inline | side by side (parent: 20bb5e1)
author | Jonas Fonseca <fonseca@diku.dk> | |
Wed, 17 May 2006 21:43:22 +0000 (23:43 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Wed, 17 May 2006 21:43:22 +0000 (23:43 +0200) |
tig.c | patch | blob | history |
index a0f79113736676ca9ee2cffb608e91d6cffa4701..c50bbf09d3bde6d45f0eaebdce7051a0be41c9bf 100644 (file)
--- a/tig.c
+++ b/tig.c
redraw_view_from(view, 0);
}
+static void
+update_view_title(struct view *view)
+{
+ if (view == display[current_view])
+ wbkgdset(view->title, get_line_attr(LINE_TITLE_FOCUS));
+ else
+ wbkgdset(view->title, get_line_attr(LINE_TITLE_BLUR));
+
+ werase(view->title);
+ wmove(view->title, 0, 0);
+
+ /* [main] ref: 334b506... - commit 6 of 4383 (0%) */
+
+ if (*view->ref)
+ wprintw(view->title, "[%s] %s", view->name, view->ref);
+ else
+ wprintw(view->title, "[%s]", view->name);
+
+ if (view->lines) {
+ wprintw(view->title, " - %s %d of %d (%d%%)",
+ view->ops->type,
+ view->lineno + 1,
+ view->lines,
+ (view->lineno + 1) * 100 / view->lines);
+ }
+
+ wrefresh(view->title);
+}
+
static void
resize_display(void)
{
}
}
-static void
-update_view_title(struct view *view)
-{
- if (view == display[current_view])
- wbkgdset(view->title, get_line_attr(LINE_TITLE_FOCUS));
- else
- wbkgdset(view->title, get_line_attr(LINE_TITLE_BLUR));
-
- werase(view->title);
- wmove(view->title, 0, 0);
-
- /* [main] ref: 334b506... - commit 6 of 4383 (0%) */
-
- if (*view->ref)
- wprintw(view->title, "[%s] %s", view->name, view->ref);
- else
- wprintw(view->title, "[%s]", view->name);
-
- if (view->lines) {
- wprintw(view->title, " - %s %d of %d (%d%%)",
- view->ops->type,
- view->lineno + 1,
- view->lines,
- (view->lineno + 1) * 100 / view->lines);
- }
-
- wrefresh(view->title);
-}
-
static void
redraw_display(void)
{