~mdw
/
tig
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Notify that the prompt is unusable while loading
[tig]
/
tig.c
diff --git
a/tig.c
b/tig.c
index
0237cb0
..
308106b
100644
(file)
--- a/
tig.c
+++ b/
tig.c
@@
-1474,7
+1474,7
@@
view_driver(struct view *view, enum request request)
case REQ_STOP_LOADING:
foreach_view (view, i) {
if (view->pipe)
case REQ_STOP_LOADING:
foreach_view (view, i) {
if (view->pipe)
- report("Stopped load
ed
the %s view", view->name),
+ report("Stopped load
ing
the %s view", view->name),
end_update(view);
}
break;
end_update(view);
}
break;
@@
-2540,7
+2540,9
@@
main(int argc, char *argv[])
memcpy(opt_cmd, "git ", 4);
opt_request = REQ_VIEW_PAGER;
} else {
memcpy(opt_cmd, "git ", 4);
opt_request = REQ_VIEW_PAGER;
} else {
- request = ERR;
+ report("Prompt interrupted by loading view, "
+ "press 'z' to stop loading views");
+ request = REQ_SCREEN_UPDATE;
}
noecho();
}
noecho();
@@
-2679,6
+2681,8
@@
main(int argc, char *argv[])
* - The cursor can wrap-around on the last line and cause the
* window to scroll.
*
* - The cursor can wrap-around on the last line and cause the
* window to scroll.
*
+ * - The prompt doesn't work while loading.
+ *
* TODO
* ----
* Features that should be explored.
* TODO
* ----
* Features that should be explored.