summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b5a1085)
raw | patch | inline | side by side (parent: b5a1085)
author | Jonas Fonseca <fonseca@diku.dk> | |
Sat, 6 Oct 2007 18:22:56 +0000 (20:22 +0200) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Sat, 6 Oct 2007 18:22:56 +0000 (20:22 +0200) |
tig.c | patch | blob | history |
index ce21fbac90d78ebb76c8a1284fd8de69f39d6d4c..cb8f6be7c1173c6bb983165e530782f5d0d9084a 100644 (file)
--- a/tig.c
+++ b/tig.c
REQ_(FIND_PREV, "Find previous search match"), \
\
REQ_GROUP("Misc") \
- REQ_(NONE, "Do nothing"), \
REQ_(PROMPT, "Bring up the prompt"), \
REQ_(SCREEN_REDRAW, "Redraw the screen"), \
REQ_(SCREEN_RESIZE, "Resize the screen"), \
REQ_(STATUS_UPDATE, "Update file status"), \
REQ_(STATUS_MERGE, "Merge file using external tool"), \
REQ_(EDIT, "Open in editor"), \
- REQ_(CHERRY_PICK, "Cherry-pick commit to current branch")
+ REQ_(CHERRY_PICK, "Cherry-pick commit to current branch"), \
+ REQ_(NONE, "Do nothing")
/* User action requests. */
/* Offset all requests to avoid conflicts with ncurses getch values. */
REQ_OFFSET = KEY_MAX + 1,
- REQ_INFO,
- REQ_UNKNOWN,
+ REQ_INFO
#undef REQ_GROUP
#undef REQ_
!string_enum_compare(req_info[i].name, name, namelen))
return req_info[i].request;
- return REQ_UNKNOWN;
+ return REQ_NONE;
}
}
request = get_request(argv[2]);
- if (request == REQ_UNKNOWN) {
+ if (request == REQ_NONE) {
config_msg = "Unknown request name";
return ERR;
}