diff options
author | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2015-05-08 10:16:10 +0200 |
---|---|---|
committer | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2015-05-08 10:16:10 +0200 |
commit | dff0e71b2aa0c4f74816db0ffdd0c662836652cf (patch) | |
tree | cb066f4ecab178c91f202b893ed2a36e9848b5d3 /examples/plugin_linemode.py | |
parent | fa7cb5b8145d005286312ca69da9d254683b5ea7 (diff) | |
download | ranger-dff0e71b2aa0c4f74816db0ffdd0c662836652cf.tar.gz |
Replaced file.basename with file.relative_path where appropriate.
The usage of file.basename could lead to some issues with :flat.
Diffstat (limited to 'examples/plugin_linemode.py')
-rw-r--r-- | examples/plugin_linemode.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/plugin_linemode.py b/examples/plugin_linemode.py index e4513f5d..8a92552e 100644 --- a/examples/plugin_linemode.py +++ b/examples/plugin_linemode.py @@ -13,4 +13,4 @@ from ranger.core.linemode import LinemodeBase class MyLinemode(LinemodeBase): name = "rot13" def filetitle(self, file, metadata): - return codecs.encode(file.basename, "rot_13") + return codecs.encode(file.relative_path, "rot_13") |