From 2e25595aec8c80cb2979acba50604345b79c1170 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Tue, 9 Dec 2014 16:43:23 +0100 Subject: Introduce the go_to_previous_tab_on_alt_number option fix #2841 --- src/config.py | 1 + src/core/core.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/config.py b/src/config.py index 563c16be..eaadb9d6 100644 --- a/src/config.py +++ b/src/config.py @@ -58,6 +58,7 @@ DEFAULT_CONFIG = { 'extract_inline_images': True, 'filter_info_messages': '', 'force_encryption': True, + 'go_to_previous_tab_on_alt_number': False, 'group_corrections': True, 'hide_exit_join': -1, 'hide_status_change': 120, diff --git a/src/core/core.py b/src/core/core.py index f6b973ec..8d7f7fcf 100644 --- a/src/core/core.py +++ b/src/core/core.py @@ -592,7 +592,7 @@ class Core(object): except ValueError: pass else: - if self.current_tab().nb == nb: + if self.current_tab().nb == nb and config.get('go_to_previous_tab_on_alt_number'): self.go_to_previous_tab() else: self.command_win('%d' % nb) -- cgit v1.2.3