summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 366fede)
raw | patch | inline | side by side (parent: 366fede)
author | Jonas Fonseca <fonseca@diku.dk> | |
Sun, 15 Feb 2009 22:20:46 +0000 (23:20 +0100) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Sun, 15 Feb 2009 22:20:46 +0000 (23:20 +0100) |
tig.c | patch | blob | history |
index b9d7a637e20293a9cb7f46c8bc77420a8a5363e2..458ebcbf5d3f87373ba25ef223c50025af2be04b 100644 (file)
--- a/tig.c
+++ b/tig.c
struct line *pos = view->line + view->lines;
int files = 0;
int file, done;
+ int cursor_y, cursor_x;
if (!status_update_prepare(&io, line->type))
return FALSE;
files++;
string_copy(buf, view->ref);
+ getsyx(cursor_y, cursor_x);
for (file = 0, done = 5; result && file < files; line++, file++) {
int almost_done = file * 100 / files;
string_format(view->ref, "updating file %u of %u (%d%% done)",
file, files, done);
update_view_title(view);
+ setsyx(cursor_y, cursor_x);
doupdate();
}
result = status_update_write(&io, line->data, line->type);