From: Jeff King Date: Fri, 10 Aug 2007 17:58:43 +0000 (+0200) Subject: status window: mention 'u' instead of Enter X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a4927c1d12c8765f3b3718f0375e15cd0986bcac;p=tig.git status window: mention 'u' instead of Enter 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 Signed-off-by: Jonas Fonseca --- diff --git a/tig.c b/tig.c index d9c9df8..b9c10ab 100644 --- a/tig.c +++ b/tig.c @@ -3156,15 +3156,15 @@ status_select(struct view *view, struct line *line) 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: @@ -3174,7 +3174,7 @@ status_select(struct view *view, struct line *line) die("w00t"); } - string_ncopy(view->ref, text, strlen(text)); + string_format(view->ref, text, get_key(REQ_STATUS_UPDATE)); } static bool