aboutsummaryrefslogtreecommitdiff
path: root/cmd-find.c
diff options
context:
space:
mode:
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 7b4d4c3e..5e0b1dbb 100644
--- a/cmd-find.c
+++ b/cmd-find.c
@@ -476,7 +476,7 @@ cmd_find_get_window_with_session(struct cmd_find_state *fs, const char *window)
}
/* Try as an offset. */
- if (!exact && window[0] == '+' || window[0] == '-') {
+ if (!exact && (window[0] == '+' || window[0] == '-')) {
if (window[1] != '\0')
n = strtonum(window + 1, 1, INT_MAX, NULL);
else