summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6e950a5)
raw | patch | inline | side by side (parent: 6e950a5)
author | Jonas Fonseca <fonseca@diku.dk> | |
Tue, 23 May 2006 21:54:55 +0000 (23:54 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Tue, 23 May 2006 21:54:55 +0000 (23:54 +0200) |
It got too annoying when browsing through the split main/diff screen.
Instead put the update timer in the title window if it grows beyond
2 seconds.
Instead put the update timer in the title window if it grows beyond
2 seconds.
tig.c | patch | blob | history |
index 4a650313ebc954354744792877965bf998b715bf..05fb370e22a76722863623d88e85f7b94e5dc227 100644 (file)
--- a/tig.c
+++ b/tig.c
(view->lineno + 1) * 100 / view->lines);
}
+ if (view->pipe) {
+ time_t secs = time(NULL) - view->start_time;
+
+ /* Three git seconds are a long time ... */
+ if (secs > 2)
+ wprintw(view->title, " %lds", secs);
+ }
+
+
wrefresh(view->title);
}
goto end;
} else if (feof(view->pipe)) {
- time_t secs = time(NULL) - view->start_time;
-
if (view == VIEW(REQ_VIEW_HELP)) {
const char *msg = TIG_HELP;
goto end;
}
- report("Loaded %d lines in %ld second%s", view->lines, secs,
- secs == 1 ? "" : "s");
+ report("");
goto end;
}
/* Clear the old view and let the incremental updating refill
* the screen. */
wclear(view->win);
- report("Loading...");
+ report("");
} else {
redraw_view(view);
if (view == VIEW(REQ_VIEW_HELP))
|| c == 0x2329
|| c == 0x232a
|| (c >= 0x2e80 && c <= 0xa4cf && c != 0x303f)
- /* CJK ... Yi */
+ /* CJK ... Yi */
|| (c >= 0xac00 && c <= 0xd7a3) /* Hangul Syllables */
|| (c >= 0xf900 && c <= 0xfaff) /* CJK Compatibility Ideographs */
|| (c >= 0xfe30 && c <= 0xfe6f) /* CJK Compatibility Forms */