summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-08-18 21:37:05 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-08-18 21:37:05 +0000
commitd0dcbaeae4ce939cfb33c372c1f0c57e7b6f3c7b (patch)
tree26056096416c8fad2590c0179201af3de055b523 /usr.bin
parentad22d02bf2ebfca023418061864cc7b04a54abfc (diff)
Whoops, getting the comparison the right way round is usually recommended.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c
index 2cab75dbf63..0fb287fc2db 100644
--- a/usr.bin/tmux/server.c
+++ b/usr.bin/tmux/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.22 2009/08/18 21:14:24 nicm Exp $ */
+/* $OpenBSD: server.c,v 1.23 2009/08/18 21:37:04 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -1124,7 +1124,7 @@ server_check_window(struct window *w)
* the window to be destroyed (or it'll close when the last
* pane dies).
*/
- if (wp->fd == -1 && options_get_number(oo, "remain-on-exit")) {
+ if (wp->fd == -1 && !options_get_number(oo, "remain-on-exit")) {
layout_close_pane(wp);
window_remove_pane(w, wp);
server_redraw_window(w);