about summary refs log tree commit diff stats
path: root/ranger/core/actions.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r--ranger/core/actions.py2
1 files changed, 1 insertions, 1 deletions
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