diff options
-rw-r--r-- | ranger/core/actions.py | 3 | ||||
-rw-r--r-- | 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 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 diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py index c4b8e198..03b7e2d3 100644 --- a/ranger/defaults/keys.py +++ b/ranger/defaults/keys.py @@ -179,7 +179,7 @@ def initialize_commands(map): map('gt', TAB, fm.tab_move(1)) map('gT', KEY_BTAB, fm.tab_move(-1)) map('gn', ctrl('N'), fm.tab_new()) - for n in range(10): + for n in range(1, 10): map('g' + str(n), fm.tab_open(n)) # ------------------------------------------------------- searching |