Don't renumber on close.

This commit is contained in:
Nicholas Marriott 2007-09-19 15:16:23 +00:00
parent d7e1d4ddb9
commit e3440e017d
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
19 September 2007
* Don't renumber windows on close.
28 August 2007 28 August 2007
* Scrolling region (\e[r) support. * Scrolling region (\e[r) support.
@ -16,5 +20,5 @@
(including mutt, emacs). No status bar yet and no key remapping or other (including mutt, emacs). No status bar yet and no key remapping or other
customisation. customisation.
$Id: CHANGES,v 1.4 2007-08-28 09:19:50 nicm Exp $ $Id: CHANGES,v 1.5 2007-09-19 15:16:23 nicm Exp $

View File

@ -1,4 +1,4 @@
/* $Id: window.c,v 1.4 2007-08-27 11:41:00 nicm Exp $ */ /* $Id: window.c,v 1.5 2007-09-19 15:16:23 nicm Exp $ */
/* /*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -158,7 +158,7 @@ window_remove(struct windows *ww, struct window *w)
if (window_index(ww, w, &i) != 0) if (window_index(ww, w, &i) != 0)
fatalx("window not found"); fatalx("window not found");
ARRAY_REMOVE(ww, i); ARRAY_SET(ww, i, NULL);
w->references--; w->references--;
if (w->references == 0) { if (w->references == 0) {