Jose Antonio Delgado Alfonso
2015-04-26 13:13:42 UTC
Issue: If you try to drag and copy using mouse in a zoomed panel, the
select-pane function is executed before dragging, so panels will be
unzoomed.
Workaround: Removing the server_unzoom_window call from select-pane
command fixes this issue, however, this is not the greatest solution. I
would suggest to distinguish between mouse select-pane and keyboard
select-pane.
---
cmd-select-pane.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/cmd-select-pane.c b/cmd-select-pane.c
index c84b414..a4fc18e 100644
--- a/cmd-select-pane.c
+++ b/cmd-select-pane.c
@@ -77,7 +77,6 @@ cmd_select_pane_exec(struct cmd *self, struct cmd_q *cmdq)
if ((wl = cmd_find_pane(cmdq, args_get(args, 't'), NULL, &wp)) == NULL)
return (CMD_RETURN_ERROR);
- server_unzoom_window(wp->window);
if (!window_pane_visible(wp)) {
cmdq_error(cmdq, "pane not visible");
return (CMD_RETURN_ERROR);
select-pane function is executed before dragging, so panels will be
unzoomed.
Workaround: Removing the server_unzoom_window call from select-pane
command fixes this issue, however, this is not the greatest solution. I
would suggest to distinguish between mouse select-pane and keyboard
select-pane.
---
cmd-select-pane.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/cmd-select-pane.c b/cmd-select-pane.c
index c84b414..a4fc18e 100644
--- a/cmd-select-pane.c
+++ b/cmd-select-pane.c
@@ -77,7 +77,6 @@ cmd_select_pane_exec(struct cmd *self, struct cmd_q *cmdq)
if ((wl = cmd_find_pane(cmdq, args_get(args, 't'), NULL, &wp)) == NULL)
return (CMD_RETURN_ERROR);
- server_unzoom_window(wp->window);
if (!window_pane_visible(wp)) {
cmdq_error(cmdq, "pane not visible");
return (CMD_RETURN_ERROR);
--
2.3.6
2.3.6