Adjust new index when releasing a less used window.
commitcd4e286c1570e00f8dd5f9c305ae337b6fcfb8ee
authorShawn O. Pearce <spearce@spearce.org>
Sun, 3 Dec 2006 03:38:11 +0000 (2 22:38 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 3 Dec 2006 03:38:11 +0000 (2 22:38 -0500)
treeafcc2cf657c5f2330387a60c12dad2fd6badefbc
parent76cc45a47a26154a8224859203974a548e93a5b0
Adjust new index when releasing a less used window.

If the new window should be positioned in the array after a window
we have removed (to make room for the new one) then we need to shift
its array index down by one as there is one less window in the array.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/lib/WindowCache.java