From 812447408be9b67850b253fe9d53a88ad31856ae Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 21 Oct 2011 12:57:38 +0200 Subject: defaults/commands: Fixed tab completion of :shell --- ranger/defaults/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ranger/defaults/commands.py b/ranger/defaults/commands.py index 0b472378..d564d4f6 100644 --- a/ranger/defaults/commands.py +++ b/ranger/defaults/commands.py @@ -206,7 +206,7 @@ class shell(Command): self.fm.execute_command(command, flags=flags) def tab(self): - if self.arg(1) and line.arg(1)[0] == '-': + if self.arg(1) and self.arg(1)[0] == '-': command = self.rest(2) else: command = self.rest(1) -- cgit 1.4.1-2-gfad0