summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/commands.py b/ranger/commands.py
index 40f62735..7fb3a62c 100644
--- a/ranger/commands.py
+++ b/ranger/commands.py
@@ -46,7 +46,7 @@ class Command(FileManagerAware):
 
 		# expand the tilde into the user directory
 		if rel_dest.startswith('~'):
-			return line + expanduser(rel_dest) + '/'
+			rel_dest = expanduser(rel_dest)
 
 		# define some shortcuts
 		abs_dest = join(pwd, rel_dest)
@@ -95,7 +95,7 @@ class Command(FileManagerAware):
 
 		# expand the tilde into the user directory
 		if rel_dest.startswith('~'):
-			return line + expanduser(rel_dest) + '/'
+			rel_dest = expanduser(rel_dest)
 
 		# define some shortcuts
 		abs_dest = join(pwd, rel_dest)