summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2012-02-09 16:04:02 +0100
committerhut <hut@lavabit.com>2012-02-09 16:04:30 +0100
commit731a5a1eb66d7ff58258dbda30a8c8d9141d129f (patch)
tree407484dba08717c24acadb08fcf3b74ea5a9fe00
parent25dfd676d7211865d2ee0f6af2ce9ef19a6c8dcf (diff)
downloadranger-731a5a1eb66d7ff58258dbda30a8c8d9141d129f.tar.gz
widgets/statusbar: Display "All" when all files are shown (fix)
-rw-r--r--ranger/gui/widgets/statusbar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py
index 7948b201..1a3b356e 100644
--- a/ranger/gui/widgets/statusbar.py
+++ b/ranger/gui/widgets/statusbar.py
@@ -254,7 +254,7 @@ class StatusBar(Widget):
 		elif len(target.files):
 			right.add(str(target.pointer + 1) + '/'
 					+ str(len(target.files)) + '  ', base)
-			if max_pos == 0:
+			if max_pos <= 0:
 				right.add('All', base, 'all')
 			elif pos == 0:
 				right.add('Top', base, 'top')