Skip to content

Commit

Permalink
- adding tmux patch to solve select-pane while zoomed (tmux/tmux#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
agilmor committed Feb 5, 2016
1 parent f05e886 commit c4b1e38
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/build.sh
Expand Up @@ -16,7 +16,7 @@ sh autogen.sh && ./configure --prefix=$install_dir && make -j$jobs install
cd ..

cd tmux
sh autogen.sh && CFLAGS="-I$HOME/usr/include" LDFLAGS="-L$HOME/usr/lib" ./configure --prefix=$install_dir && make -j$jobs install
patch -p1 < ../select-zoomed.patch && sh autogen.sh && CFLAGS="-I$HOME/usr/include" LDFLAGS="-L$HOME/usr/lib" ./configure --prefix=$install_dir && make -j$jobs install
cd ..


Expand Down
31 changes: 31 additions & 0 deletions src/select-zoomed.patch
@@ -0,0 +1,31 @@
diff --git a/cmd-select-pane.c b/cmd-select-pane.c
index e76587c..3b7b526 100644
--- a/cmd-select-pane.c
+++ b/cmd-select-pane.c
@@ -120,14 +120,22 @@ cmd_select_pane_exec(struct cmd *self, struct cmd_q *cmdq)
return (CMD_RETURN_NORMAL);
}

- if (args_has(self->args, 'L'))
+ if (args_has(self->args, 'L')){
+ server_unzoom_window(wp->window);
wp = window_pane_find_left(wp);
- else if (args_has(self->args, 'R'))
+ }
+ else if (args_has(self->args, 'R')){
+ server_unzoom_window(wp->window);
wp = window_pane_find_right(wp);
- else if (args_has(self->args, 'U'))
+ }
+ else if (args_has(self->args, 'U')){
+ server_unzoom_window(wp->window);
wp = window_pane_find_up(wp);
- else if (args_has(self->args, 'D'))
+ }
+ else if (args_has(self->args, 'D')){
+ server_unzoom_window(wp->window);
wp = window_pane_find_down(wp);
+ }
if (wp == NULL)
return (CMD_RETURN_NORMAL);

0 comments on commit c4b1e38

Please sign in to comment.