about summary refs log tree commit homepage
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dtas-readahead1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/dtas-readahead b/bin/dtas-readahead
index b4b7311..6034763 100755
--- a/bin/dtas-readahead
+++ b/bin/dtas-readahead
@@ -133,6 +133,7 @@ def do_ra(fp, pos, w)
 end
 
 def do_open(path)
+  return unless path # could be a command
   if path =~ /\.ya?ml\z/
     File.open(path) do |fp|
       buf = fp.read(4)