summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c2124cc)
raw | patch | inline | side by side (parent: c2124cc)
author | Jonas Fonseca <fonseca@diku.dk> | |
Thu, 18 May 2006 08:15:09 +0000 (10:15 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Thu, 18 May 2006 08:15:09 +0000 (10:15 +0200) |
Make tig more compatible with Mutt behavior.
Requested-by: Aneesh Kumar <aneesh.kumar@gmail.com>
Requested-by: Aneesh Kumar <aneesh.kumar@gmail.com>
tig.c | patch | blob | history |
index 9c2665669c916245fea9def3930d11efc6357e16..da2af8f1bdd0cbe7b7f29c1bf26221e4dd5dcd9d 100644 (file)
--- a/tig.c
+++ b/tig.c
/* This color name can be used to refer to the default term colors. */
#define COLOR_DEFAULT (-1)
-#define TIG_HELP "(d)iff, (l)og, (m)ain, (q)uit, (h)elp, (Enter) show diff"
+#define TIG_HELP "(d)iff, (l)og, (m)ain, (q)uit, (h)elp"
/* The format and size of the date column in the main view. */
#define DATE_FORMAT "%Y-%m-%d %H:%M"
{
char *line = view->line[view->lineno];
+ if (view == VIEW(REQ_VIEW_DIFF)) {
+ scroll_view(view, REQ_SCROLL_LINE_DOWN);
+ return TRUE;
+ }
+
if (get_line_type(line) == LINE_COMMIT) {
if (view == VIEW(REQ_VIEW_LOG))
open_view(view, REQ_VIEW_DIFF, OPEN_SPLIT | OPEN_BACKGROUNDED);
* Switch to pager view.
* h::
* Show man page.
- * Return::
- * If on a commit line show the commit diff. Additionally, if in
- * main or log view this will split the view. To open the commit
- * diff in full size view either use 'd' or press Return twice.
+ * Enter::
+ * This key is "context sensitive" depending on what view you are
+ * currently in. When in log view on a commit line or in the main
+ * view, split the view and show the commit diff. In the diff view
+ * pressing Enter will simply scroll the view one line down.
* Tab::
* Switch to next view.
**/