mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 06:17:04 +00:00
Remove some dead code in cmd-move-window.c and make a load of local
functions static.
This commit is contained in:
13
xterm-keys.c
13
xterm-keys.c
@ -40,16 +40,17 @@
|
||||
* We accept any but always output the latter (it comes first in the table).
|
||||
*/
|
||||
|
||||
int xterm_keys_match(const char *, const char *, size_t, size_t *,
|
||||
key_code *);
|
||||
int xterm_keys_modifiers(const char *, size_t, size_t *, key_code *);
|
||||
static int xterm_keys_match(const char *, const char *, size_t, size_t *,
|
||||
key_code *);
|
||||
static int xterm_keys_modifiers(const char *, size_t, size_t *,
|
||||
key_code *);
|
||||
|
||||
struct xterm_keys_entry {
|
||||
key_code key;
|
||||
const char *template;
|
||||
};
|
||||
|
||||
const struct xterm_keys_entry xterm_keys_table[] = {
|
||||
static const struct xterm_keys_entry xterm_keys_table[] = {
|
||||
{ KEYC_F1, "\033[1;_P" },
|
||||
{ KEYC_F1, "\033O1;_P" },
|
||||
{ KEYC_F1, "\033O_P" },
|
||||
@ -114,7 +115,7 @@ const struct xterm_keys_entry xterm_keys_table[] = {
|
||||
* Match key against buffer, treating _ as a wildcard. Return -1 for no match,
|
||||
* 0 for match, 1 if the end of the buffer is reached (need more data).
|
||||
*/
|
||||
int
|
||||
static int
|
||||
xterm_keys_match(const char *template, const char *buf, size_t len,
|
||||
size_t *size, key_code *modifiers)
|
||||
{
|
||||
@ -148,7 +149,7 @@ xterm_keys_match(const char *template, const char *buf, size_t len,
|
||||
}
|
||||
|
||||
/* Find modifiers from buffer. */
|
||||
int
|
||||
static int
|
||||
xterm_keys_modifiers(const char *buf, size_t len, size_t *pos,
|
||||
key_code *modifiers)
|
||||
{
|
||||
|
Reference in New Issue
Block a user