summaryrefslogtreecommitdiffstats
path: root/cmd-find.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2023-07-10 12:01:12 +0100
committerThomas Adam <thomas@xteddy.org>2023-07-10 12:01:12 +0100
commit269dab4b3e593ade4995ebbcb428025f51c542fd (patch)
tree57f59066a9526c6bcf59ef24a58ac562cd3bdeb6 /cmd-find.c
parente4c4ceb2865fd9d2006a85c7f48bb7b6dd2f5c49 (diff)
parent4ece43a02961dc6726e97b05caca9a3c53793826 (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-find.c')
-rw-r--r--cmd-find.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-find.c b/cmd-find.c
index 154cadac..8a3499a1 100644
--- a/cmd-find.c
+++ b/cmd-find.c
@@ -582,7 +582,7 @@ cmd_find_get_pane_with_window(struct cmd_find_state *fs, const char *pane)
/* Try special characters. */
if (strcmp(pane, "!") == 0) {
- fs->wp = fs->w->last;
+ fs->wp = TAILQ_FIRST(&fs->w->last_panes);
if (fs->wp == NULL)
return (-1);
return (0);