From 165ee9ee1a00fc3eb4ddd606e023c6653ab8c686 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 12 Apr 2014 02:59:49 +0200 Subject: =?UTF-8?q?Fix=20#2503/4=20(use=20=E2=80=9C.=E2=80=9D=20as=20an=20?= =?UTF-8?q?alias=20for=20the=20current=20tab=20in=20/move=5Ftab)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/commands.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/core/commands.py') diff --git a/src/core/commands.py b/src/core/commands.py index f2a6d2f4..39bf505d 100644 --- a/src/core/commands.py +++ b/src/core/commands.py @@ -218,6 +218,12 @@ def command_move_tab(self, arg): current_tab = self.current_tab() if len(args) != 2: return self.command_help('move_tab') + + if args[0] == '.': + args[0] = current_tab.nb + if args[1] == '.': + args[1] = current_tab.nb + def get_nb_from_value(value): ref = None try: -- cgit v1.2.3