Commits
ca1d71ea and
89d917a bound the Enter functionality
to 'u' (and Enter now shows the diff).
[ Slightly changed to use get_key(). --jonas ]
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
switch (line->type) {
case LINE_STAT_STAGED:
- text = "Press Enter to unstage file for commit";
+ text = "Press %s to unstage file for commit";
break;
case LINE_STAT_UNSTAGED:
- text = "Press Enter to stage file for commit ";
+ text = "Press %s to stage file for commit ";
break;
case LINE_STAT_UNTRACKED:
- text = "Press Enter to stage file for addition";
+ text = "Press %s to stage file for addition";
break;
case LINE_STAT_NONE:
die("w00t");
}
- string_ncopy(view->ref, text, strlen(text));
+ string_format(view->ref, text, get_key(REQ_STATUS_UPDATE));
}
static bool