From be0ad01b7c4d9d7948d9c9595ff2a4af3af68793 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 6 Jan 2015 09:12:02 +0000 Subject: [PATCH 1/3] Add missing default bindings, from Theo Buehler. --- tmux.1 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tmux.1 b/tmux.1 index 5154adbb..1d4f2923 100644 --- a/tmux.1 +++ b/tmux.1 @@ -247,6 +247,10 @@ Split the current pane into two, left and right. Kill the current window. .It ' Prompt for a window index to select. +.It \&( +Switch the attached client to the previous session. +.It \&) +Switch the attached client to the next session. .It , Rename the current window. .It - @@ -267,6 +271,8 @@ Choose which buffer to paste interactively from a list. List all key bindings. .It D Choose a client to detach. +.It L +Switch the attached client back to the last session. .It \&[ Enter copy mode to copy text or view the history. .It \&] @@ -293,14 +299,14 @@ Briefly display pane indexes. Force redraw of the attached client. .It s Select a new session for the attached client interactively. -.It L -Switch the attached client back to the last session. .It t Show the time. .It w Choose the current window interactively. .It x Kill the current pane. +.It z +Toggle zoom state of the current pane. .It { Swap the current pane with the previous pane. .It } @@ -318,6 +324,8 @@ pane. .It M-1 to M-5 Arrange panes in one of the five preset layouts: even-horizontal, even-vertical, main-horizontal, main-vertical, or tiled. +.It Space +Arrange the current window in the next preset layout. .It M-n Move to the next window with a bell or activity marker. .It M-o From fee096a40680dff40557f016b5904b3dfbf9072c Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 6 Jan 2015 09:12:53 +0000 Subject: [PATCH 2/3] Unzoom before kill, from Thomas Adam. --- server-fn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/server-fn.c b/server-fn.c index 310f16e6..b8cdb31a 100644 --- a/server-fn.c +++ b/server-fn.c @@ -270,6 +270,7 @@ server_kill_window(struct window *w) if (session_has(s, w) == NULL) continue; + server_unzoom_window(w); while ((wl = winlink_find_by_window(&s->windows, w)) != NULL) { if (session_detach(s, wl)) { server_destroy_session_group(s); From aae2b7aa89b80ec6b07a8036f923dc6c8882cfae Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 6 Jan 2015 21:14:42 +0000 Subject: [PATCH 3/3] Revert to r1.16 since this is still clearly broken and I can't see how right now. --- grid-view.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/grid-view.c b/grid-view.c index 078a0da4..badabd56 100644 --- a/grid-view.c +++ b/grid-view.c @@ -184,10 +184,7 @@ grid_view_insert_cells(struct grid *gd, u_int px, u_int py, u_int nx) px = grid_view_x(gd, px); py = grid_view_y(gd, py); - if (gd->linedata[py].cellsize + nx < gd->sx) - sx = grid_view_x(gd, gd->linedata[py].cellsize + nx); - else - sx = grid_view_x(gd, gd->sx); + sx = grid_view_x(gd, gd->sx); if (px == sx - 1) grid_clear(gd, px, py, 1, 1); @@ -204,9 +201,7 @@ grid_view_delete_cells(struct grid *gd, u_int px, u_int py, u_int nx) px = grid_view_x(gd, px); py = grid_view_y(gd, py); - sx = grid_view_x(gd, gd->linedata[py].cellsize); - if (sx < px + nx) - sx = px + nx; + sx = grid_view_x(gd, gd->sx); grid_move_cells(gd, px, px + nx, py, sx - px - nx); grid_clear(gd, sx - nx, py, px + nx - (sx - nx), 1);