mirror of
https://github.com/tmux/tmux.git
synced 2025-04-08 09:58:49 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
c4a9299956
@ -204,7 +204,7 @@ cmd_display_panes_key(struct client *c, struct key_event *event)
|
||||
struct cmd_parse_result *pr;
|
||||
|
||||
if (event->key < '0' || event->key > '9')
|
||||
return (1);
|
||||
return (-1);
|
||||
|
||||
wp = window_pane_at_index(w, event->key - '0');
|
||||
if (wp == NULL)
|
||||
|
4
layout.c
4
layout.c
@ -272,7 +272,7 @@ layout_fix_panes(struct window *w)
|
||||
wp->xoff = lc->xoff;
|
||||
wp->yoff = lc->yoff;
|
||||
|
||||
if (shift && status == 1)
|
||||
if (shift && status == PANE_STATUS_TOP)
|
||||
wp->yoff += 1;
|
||||
|
||||
window_pane_resize(wp, lc->sx, lc->sy - shift);
|
||||
@ -1021,7 +1021,7 @@ layout_spread_cell(struct window *w, struct layout_cell *parent)
|
||||
|
||||
number = 0;
|
||||
TAILQ_FOREACH (lc, &parent->cells, entry)
|
||||
number++;
|
||||
number++;
|
||||
if (number <= 1)
|
||||
return (0);
|
||||
status = options_get_number(w->options, "pane-border-status");
|
||||
|
@ -1218,9 +1218,13 @@ server_client_handle_key(struct client *c, struct key_event *event)
|
||||
* blocked so they need to be processed immediately rather than queued.
|
||||
*/
|
||||
if ((~c->flags & CLIENT_READONLY) && c->overlay_key != NULL) {
|
||||
if (c->overlay_key(c, event) != 0)
|
||||
switch (c->overlay_key(c, event)) {
|
||||
case 0:
|
||||
return (0);
|
||||
case 1:
|
||||
server_client_clear_overlay(c);
|
||||
return (0);
|
||||
return (0);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user