From 259939558dcc39c64ad546d74cd0eb62a9667030 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 10 Oct 2011 23:07:13 +0200 Subject: core.actions: Fixed %t tag in --clean mode --- ranger/core/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ranger/core/actions.py b/ranger/core/actions.py index cde80431..6449456b 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -157,7 +157,7 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): macros['c'] = [fl.path for fl in self.fm.env.copy] macros['t'] = [fl.basename for fl in self.fm.env.cwd.files - if fl.realpath in self.fm.tags] + if fl.realpath in (self.fm.tags or [])] if self.fm.env.cwd: macros['d'] = self.fm.env.cwd.path -- cgit 1.4.1-2-gfad0