diff options
-rw-r--r-- | src/core.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core.py b/src/core.py index ce256fe0..47811376 100644 --- a/src/core.py +++ b/src/core.py @@ -628,10 +628,13 @@ class Core(object): if char.startswith('M-') and len(char) == 3: try: nb = int(char[2]) - except: + except ValueError: pass else: - self.command_win('%s' % nb) + if self.current_tab().nb == nb: + self.go_to_previous_tab() + else: + self.command_win('%d' % nb) # search for keyboard shortcut if char in list(self.key_func.keys()): self.key_func[char]() |