diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-24 00:25:03 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-24 00:25:03 +0000 |
commit | c5239c59846c2d09725d4b1db0e728b3376c3998 (patch) | |
tree | 1fedf6dcd02ec5c6b18ee45146dc21957d4b8c4e /input-keys.c | |
parent | be13479f099749b2a199e17505797e51090caca0 (diff) | |
download | rtmux-c5239c59846c2d09725d4b1db0e728b3376c3998.tar.gz rtmux-c5239c59846c2d09725d4b1db0e728b3376c3998.tar.bz2 rtmux-c5239c59846c2d09725d4b1db0e728b3376c3998.zip |
Add resize-pane -Z to temporary zoom the active pane to occupy the full window
or unzoom (restored to the normal layout) if it already zoomed, bound to C-b z
by default. The pane is unzoomed on pretty much any excuse whatsoever.
We considered making this a new layout but the requirements are quite different
from layouts so decided it is better as a special case. Each current layout
cell is saved, a temporary one-cell layout generated and all except the active
pane set to NULL.
Prompted by suggestions and scripts from several. Thanks to Aaron Jensen and
Thiago Padilha for testing an earlier version.
Diffstat (limited to 'input-keys.c')
-rw-r--r-- | input-keys.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/input-keys.c b/input-keys.c index d57926ad..faa7bd17 100644 --- a/input-keys.c +++ b/input-keys.c @@ -218,7 +218,8 @@ input_mouse(struct window_pane *wp, struct session *s, struct mouse_event *m) */ if (m->sgr && (wp->screen->mode & MODE_MOUSE_SGR)) { len = xsnprintf(buf, sizeof buf, "\033[<%d;%d;%d%c", - m->sgr_xb, m->x + 1, m->y + 1, m->sgr_rel ? 'm' : 'M'); + m->sgr_xb, m->x + 1, m->y + 1, + m->sgr_rel ? 'm' : 'M'); } else if (wp->screen->mode & MODE_MOUSE_UTF8) { len = xsnprintf(buf, sizeof buf, "\033[M"); len += utf8_split2(m->xb + 32, &buf[len]); |