aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-08-18 21:37:04 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-08-18 21:37:04 +0000
commitc488e5e40d37d441cd0d19cec0663015457a1337 (patch)
tree76e170db38f7d6c33af0e65c99e338de14d09118
parent8b7be5861e193212d0a98aa1decdcf827e9882f8 (diff)
downloadrtmux-c488e5e40d37d441cd0d19cec0663015457a1337.tar.gz
rtmux-c488e5e40d37d441cd0d19cec0663015457a1337.tar.bz2
rtmux-c488e5e40d37d441cd0d19cec0663015457a1337.zip
Whoops, getting the comparison the right way round is usually recommended.
-rw-r--r--server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.c b/server.c
index 18b11999..707b4e49 100644
--- a/server.c
+++ b/server.c
@@ -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);