summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-12-22 01:24:34 +0100
committerhut <hut@lavabit.com>2010-12-22 01:24:34 +0100
commitb732a872fd02d1525f54c7631334d3ba2a0d51a1 (patch)
tree82acca6c299549f4137555f41f8ae324675497e5
parentd3124d6b67514e48107cc6c0dd0a92d5a33ace8b (diff)
downloadranger-b732a872fd02d1525f54c7631334d3ba2a0d51a1.tar.gz
gui.bar: Fixed malpositioning of tab in some cases
-rw-r--r--ranger/gui/bar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/gui/bar.py b/ranger/gui/bar.py
index 41cc8133..aa5c9ab4 100644
--- a/ranger/gui/bar.py
+++ b/ranger/gui/bar.py
@@ -67,7 +67,7 @@ class Bar(object):
 			raise ValueError("Cannot shrink down to that size by cutting")
 		leftsize = self.left.sumsize()
 		rightsize = self.right.sumsize()
-		oversize = leftsize + rightsize - wid
+		oversize = leftsize + rightsize - wid - 1
 		if oversize <= 0:
 			return self.fill_gap(' ', wid, gapwidth=False)
 		nonfixed_items = self.left.nonfixed_items()