about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/config/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index d64e0773..18b2f395 100644
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -1082,7 +1082,7 @@ class narrow(Command):
         self.fm.thisdir.load_content(schedule=False)
 
     def tab(self):
-        if self.fm.env.cwd.files[-1] is not self.fm.env.cf:
+        if self.fm.thisdir.files[-1] is not self.fm.thisfile:
             self.fm.move(down=1)
         else:
             # We're at the bottom, so wrap