summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorWojciech Siewierski <wojciech.siewierski@onet.pl>2015-02-01 11:18:31 +0100
committerWojciech Siewierski <wojciech.siewierski@onet.pl>2015-02-01 11:18:31 +0100
commit619709a7c10f0b9b84f1c51ec78e158a7e7026a2 (patch)
tree54a6ff87e4a98cca9ff30dfa4770ed9224eb0b6c /ranger
parent1e452164dcbc02e4106fc2f90aa02580cf3449e8 (diff)
downloadranger-619709a7c10f0b9b84f1c51ec78e158a7e7026a2.tar.gz
core.actions: tab_switch uses realpath
This way the different representation of the same path are treated in
the same way.
Diffstat (limited to 'ranger')
-rw-r--r--ranger/core/actions.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 9db80f6b..20fb2ae9 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -1071,6 +1071,7 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 
         If path does not exist, it is treated as a directory.
         """
+        path = realpath(path)
         if not os.path.exists(path):
             file_selection = None
             if create_directory: