From bec7df57bbf04c8798328cd3b45db2d6c9e54f95 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 13 Apr 2010 12:37:36 +0200 Subject: Don't use tab 0 by default --- ranger/core/actions.py | 3 +-- ranger/defaults/keys.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ranger/core/actions.py b/ranger/core/actions.py index a07b4ae0..ac6cfc95 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -521,8 +521,7 @@ class Actions(FileManagerAware, 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 diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py index c181857e..80985274 100644 --- a/ranger/defaults/keys.py +++ b/ranger/defaults/keys.py @@ -208,7 +208,7 @@ map('gc', '', fm.tab_close()) map('gt', '', fm.tab_move(1)) map('gT', '', fm.tab_move(-1)) map('gn', '', fm.tab_new()) -for n in range(10): +for n in range(1, 10): map('g' + str(n), fm.tab_open(n)) map('', fm.tab_open(n)) -- cgit 1.4.1-2-gfad0