summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-02-16 20:07:12 +0100
committerhut <hut@lavabit.com>2013-02-16 20:07:12 +0100
commit096fd48b21ad1c9c5657bbec9d2a26ea55d22c62 (patch)
treef0e7159ae5f4a6b7b99cd1228c469de2fc81d2b6
parent86048e558dc4b12c0b2a461e77f26828aa64e0a8 (diff)
downloadranger-096fd48b21ad1c9c5657bbec9d2a26ea55d22c62.tar.gz
config/commands: cleaner implementation of travel.execute()
-rw-r--r--ranger/config/commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index 9a42f66d..372aeccb 100644
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -1115,11 +1115,11 @@ class travel(narrow, Command):
     """
 
     def execute(self):
-        thisfile = self.fm.thisfile
+        thisdir = self.fm.thisdir
         narrow.execute(self)
 
         # reopen the console:
-        if thisfile and thisfile.is_directory or self.rest(1) == "..":
+        if thisdir != self.fm.thisdir:
             self.fm.open_console(self.__class__.__name__ + " ")
             if self.rest(1) != "..":
                 self.fm.block_input(0.5)