Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- adding tmux patch to solve select-pane while zoomed (tmux/tmux#150)
- Loading branch information
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
|