summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 17482b1)
raw | patch | inline | side by side (parent: 17482b1)
author | Jonas Fonseca <fonseca@diku.dk> | |
Fri, 8 Sep 2006 16:21:43 +0000 (18:21 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Fri, 8 Sep 2006 16:30:09 +0000 (18:30 +0200) |
tig.c | patch | blob | history |
index f6532ad121f6d2d00dabdec663138caa485f3c9e..b84c561f95235a5a58e22df2bafea5253d49cd08 100644 (file)
--- a/tig.c
+++ b/tig.c
}
static int
-read_prompt(void)
+read_prompt(const char *prompt)
{
enum { READING, STOP, CANCEL } status = READING;
char buf[sizeof(opt_cmd) - STRING_SIZE("git \0")];
foreach_view (view, i)
update_view(view);
- report(":%.*s", pos, buf);
+ report("%s%.*s", prompt, pos, buf);
/* Refresh, accept single keystroke of input */
key = wgetch(status_win);
switch (key) {
* status_win restricted. */
switch (request) {
case REQ_PROMPT:
- if (read_prompt() == ERR)
+ if (read_prompt(":") == ERR)
request = REQ_SCREEN_UPDATE;
break;