aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-09-19 15:16:23 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-09-19 15:16:23 +0000
commite3440e017dead90510f81fbde5323a1c8e91173d (patch)
tree373c73b5e1d90f5aa43ef7a2b6f6f85d87fa87ef
parentd7e1d4ddb96b259250cce5787b0df5c39ed1cf52 (diff)
downloadrtmux-e3440e017dead90510f81fbde5323a1c8e91173d.tar.gz
rtmux-e3440e017dead90510f81fbde5323a1c8e91173d.tar.bz2
rtmux-e3440e017dead90510f81fbde5323a1c8e91173d.zip
Don't renumber on close.
-rw-r--r--CHANGES6
-rw-r--r--window.c4
2 files changed, 7 insertions, 3 deletions
diff --git a/CHANGES b/CHANGES
index 5ef48f8c..236f1218 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+19 September 2007
+
+* Don't renumber windows on close.
+
28 August 2007
* Scrolling region (\e[r) support.
@@ -16,5 +20,5 @@
(including mutt, emacs). No status bar yet and no key remapping or other
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 $
diff --git a/window.c b/window.c
index 5052b4e2..66c98f48 100644
--- a/window.c
+++ b/window.c
@@ -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>
@@ -158,7 +158,7 @@ window_remove(struct windows *ww, struct window *w)
if (window_index(ww, w, &i) != 0)
fatalx("window not found");
- ARRAY_REMOVE(ww, i);
+ ARRAY_SET(ww, i, NULL);
w->references--;
if (w->references == 0) {