summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2017-04-21 21:02:27 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2017-04-21 21:02:27 +0000
commit5fbbb1054fe82c573714dee58e18fc892fa267bb (patch)
treebcd96cd908785c95b635088ef61c667101d2ad4d
parent8ad8edde2ef5380351ea1bbdd5541d443c54cd8c (diff)
Rename a variable.
-rw-r--r--usr.bin/tmux/cmd-select-pane.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/tmux/cmd-select-pane.c b/usr.bin/tmux/cmd-select-pane.c
index 9f28d401cfe..0eb651bbb82 100644
--- a/usr.bin/tmux/cmd-select-pane.c
+++ b/usr.bin/tmux/cmd-select-pane.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-select-pane.c,v 1.35 2016/11/16 00:24:03 nicm Exp $ */
+/* $OpenBSD: cmd-select-pane.c,v 1.36 2017/04/21 21:02:26 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -63,24 +63,24 @@ cmd_select_pane_exec(struct cmd *self, struct cmdq_item *item)
const char *style;
if (self->entry == &cmd_last_pane_entry || args_has(args, 'l')) {
- if (wl->window->last == NULL) {
+ lastwp = w->last;
+ if (lastwp == NULL) {
cmdq_error(item, "no last pane");
return (CMD_RETURN_ERROR);
}
if (args_has(self->args, 'e'))
- w->last->flags &= ~PANE_INPUTOFF;
+ lastwp->flags &= ~PANE_INPUTOFF;
else if (args_has(self->args, 'd'))
- w->last->flags |= PANE_INPUTOFF;
+ lastwp->flags |= PANE_INPUTOFF;
else {
server_unzoom_window(w);
- window_redraw_active_switch(w, w->last);
- if (window_set_active_pane(w, w->last)) {
+ window_redraw_active_switch(w, lastwp);
+ if (window_set_active_pane(w, lastwp)) {
server_status_window(w);
server_redraw_window_borders(w);
}
}
-
return (CMD_RETURN_NORMAL);
}