mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
right-up should be right-of, also rename the values too.
This commit is contained in:
parent
13b7fd82c1
commit
46aa92420a
16
cmd-find.c
16
cmd-find.c
@ -102,10 +102,10 @@ const char *cmd_find_pane_table[][2] = {
|
|||||||
{ "{top-right}", "top-right" },
|
{ "{top-right}", "top-right" },
|
||||||
{ "{bottom-left}", "bottom-left" },
|
{ "{bottom-left}", "bottom-left" },
|
||||||
{ "{bottom-right}", "bottom-right" },
|
{ "{bottom-right}", "bottom-right" },
|
||||||
{ "{up-of}", "{up}" },
|
{ "{up-of}", "{up-of}" },
|
||||||
{ "{down-of}", "{down}" },
|
{ "{down-of}", "{down-of}" },
|
||||||
{ "{left-of}", "{left}" },
|
{ "{left-of}", "{left-of}" },
|
||||||
{ "{right-up}", "{right}" },
|
{ "{right-of}", "{right-of}" },
|
||||||
{ NULL, NULL }
|
{ NULL, NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -699,22 +699,22 @@ cmd_find_get_pane_with_window(struct cmd_find_state *fs, const char *pane)
|
|||||||
return (-1);
|
return (-1);
|
||||||
fs->wp = fs->w->last;
|
fs->wp = fs->w->last;
|
||||||
return (0);
|
return (0);
|
||||||
} else if (strcmp(pane, "{up}") == 0) {
|
} else if (strcmp(pane, "{up-of}") == 0) {
|
||||||
fs->wp = window_pane_find_up(fs->w->active);
|
fs->wp = window_pane_find_up(fs->w->active);
|
||||||
if (fs->wp == NULL)
|
if (fs->wp == NULL)
|
||||||
return (-1);
|
return (-1);
|
||||||
return (0);
|
return (0);
|
||||||
} else if (strcmp(pane, "{down}") == 0) {
|
} else if (strcmp(pane, "{down-of}") == 0) {
|
||||||
fs->wp = window_pane_find_down(fs->w->active);
|
fs->wp = window_pane_find_down(fs->w->active);
|
||||||
if (fs->wp == NULL)
|
if (fs->wp == NULL)
|
||||||
return (-1);
|
return (-1);
|
||||||
return (0);
|
return (0);
|
||||||
} else if (strcmp(pane, "{left}") == 0) {
|
} else if (strcmp(pane, "{left-of}") == 0) {
|
||||||
fs->wp = window_pane_find_left(fs->w->active);
|
fs->wp = window_pane_find_left(fs->w->active);
|
||||||
if (fs->wp == NULL)
|
if (fs->wp == NULL)
|
||||||
return (-1);
|
return (-1);
|
||||||
return (0);
|
return (0);
|
||||||
} else if (strcmp(pane, "{right}") == 0) {
|
} else if (strcmp(pane, "{right-of}") == 0) {
|
||||||
fs->wp = window_pane_find_right(fs->w->active);
|
fs->wp = window_pane_find_right(fs->w->active);
|
||||||
if (fs->wp == NULL)
|
if (fs->wp == NULL)
|
||||||
return (-1);
|
return (-1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user