summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-02-25 04:13:38 +0100
committerhut <hut@lavabit.com>2013-02-25 04:14:07 +0100
commit15f811477ce6d46c1a422c9fd58d977035ff9dfd (patch)
tree8e148b1f2e439d6543311ad095ff9a0ecdfb8753
parenta9ce3aeeb11ee2eb1cc3c3076a0068646476ccdb (diff)
downloadranger-15f811477ce6d46c1a422c9fd58d977035ff9dfd.tar.gz
commands.scout: better handling of "."
-rw-r--r--ranger/config/commands.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index 13b2e060..367a4a0b 100644
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -1115,6 +1115,9 @@ class scout(Command):
         flags   = self.flags
         pattern = self.pattern
 
+        if pattern == ".":
+            return re.compile("")
+
         # Handle carets at start and dollar signs at end separately
         if pattern.startswith('^'):
             pattern = pattern[1:]