summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/actions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 77654b1c..5775a8bb 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -346,7 +346,7 @@ class Actions(FileManagerAware, SettingsAware):
         filename = os.path.expanduser(filename)
         with open(filename, 'r') as f:
             for line in f:
-                line = line.lstrip().rstrip(" \r\n")
+                line = line.strip(" \r\n")
                 if line.startswith("#") or not line.strip():
                     continue
                 try: