summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/cmd-find.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2018-01-15 15:27:04 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2018-01-15 15:27:04 +0000
commit8b10d578091aa6f23392eea3c5fa3ee1e819c2e0 (patch)
tree1d3eb45fcd3d391c568da06a985aa020ec808c1f /usr.bin/tmux/cmd-find.c
parent1e1db38a33ecba9e2ad3c9f7308345525c08ebac (diff)
Some unused code, GitHub issue 1219.
Diffstat (limited to 'usr.bin/tmux/cmd-find.c')
-rw-r--r--usr.bin/tmux/cmd-find.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-find.c b/usr.bin/tmux/cmd-find.c
index b34db99b621..b0294a5fe20 100644
--- a/usr.bin/tmux/cmd-find.c
+++ b/usr.bin/tmux/cmd-find.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-find.c,v 1.57 2017/08/30 10:33:57 nicm Exp $ */
+/* $OpenBSD: cmd-find.c,v 1.58 2018/01/15 15:27:03 nicm Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -588,8 +588,6 @@ cmd_find_get_pane_with_window(struct cmd_find_state *fs, const char *pane)
/* Try special characters. */
if (strcmp(pane, "!") == 0) {
- if (fs->w->last == NULL)
- return (-1);
fs->wp = fs->w->last;
if (fs->wp == NULL)
return (-1);