From 4a325c8f9366a1c7643d193ff2e613bbc91ce144 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 26 Oct 2007 16:57:32 +0000 Subject: unlink-window command. Also fix some u_int -> int problems. --- session.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'session.c') diff --git a/session.c b/session.c index 5f589e13..ded3959f 100644 --- a/session.c +++ b/session.c @@ -1,4 +1,4 @@ -/* $Id: session.c,v 1.26 2007-10-26 13:35:39 nicm Exp $ */ +/* $Id: session.c,v 1.27 2007-10-26 16:57:32 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -253,11 +253,11 @@ session_previous(struct session *s) /* Move session to specific window. */ int -session_select(struct session *s, u_int i) +session_select(struct session *s, int idx) { struct winlink *wl; - wl = winlink_find_by_index(&s->windows, i); + wl = winlink_find_by_index(&s->windows, idx); if (wl == NULL) return (-1); if (wl == s->curw) -- cgit