version 1.68, 2021/08/21 10:22:39 |
version 1.69, 2023/07/10 09:24:53 |
|
|
struct options_entry *o; |
struct options_entry *o; |
|
|
if (entry == &cmd_last_pane_entry || args_has(args, 'l')) { |
if (entry == &cmd_last_pane_entry || args_has(args, 'l')) { |
lastwp = w->last; |
/* |
|
* Check for no last pane found in case the other pane was |
|
* spawned without being visited (for example split-window -d). |
|
*/ |
|
lastwp = TAILQ_FIRST(&w->last_panes); |
if (lastwp == NULL && window_count_panes(w) == 2) { |
if (lastwp == NULL && window_count_panes(w) == 2) { |
lastwp = TAILQ_PREV(w->active, window_panes, entry); |
lastwp = TAILQ_PREV(w->active, window_panes, entry); |
if (lastwp == NULL) |
if (lastwp == NULL) |