From 876261b73081d9723b082a8f2798f76e3122e867 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 13 Apr 2010 12:40:19 +0200 Subject: Don't use tab 0 by default Conflicts: ranger/defaults/keys.py --- ranger/core/actions.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ranger/core/actions.py') diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 5daa383e..9bef8bdc 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -483,8 +483,7 @@ class Actions(EnvironmentAware, SettingsAware): self.tab_open(newtab) def tab_new(self): - for i in range(10): - i = (i + 1) % 10 + for i in range(1, 10): if not i in self.tabs: self.tab_open(i) break -- cgit 1.4.1-2-gfad0