From 3879c89186e4565729448a13cd119fc40ad744ef Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 29 Sep 2007 21:02:26 +0000 Subject: [PATCH] Ooops, missed this one. Doh. --- session.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/session.c b/session.c index bd96d8cc..a12f715e 100644 --- a/session.c +++ b/session.c @@ -1,4 +1,4 @@ -/* $Id: session.c,v 1.18 2007-09-29 21:01:18 nicm Exp $ */ +/* $Id: session.c,v 1.19 2007-09-29 21:02:26 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -218,6 +218,8 @@ session_select(struct session *s, u_int i) w = window_at(&s->windows, i); if (w == NULL) return (-1); + if (w == s->window) + return (0); s->last = s->window; s->window = w; return (0);