about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-11-05 01:04:51 +0000
committerEric Wong <e@80x24.org>2016-11-05 01:15:48 +0000
commitaf91a075c10cfc7dd6f7e04c55ae2b14dc25d1ea (patch)
treeea1b4a3655306b4041b3f130495eba573dd6beab
parent4224237cb4958d453f3ea3658d0fc9d2786fdea8 (diff)
downloaddtas-af91a075c10cfc7dd6f7e04c55ae2b14dc25d1ea.tar.gz
We can't do much for readahead when it comes to dtas-player
running arbitrary commands.
-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)