about summary refs log tree commit diff stats
path: root/code/runcontext.rb
diff options
context:
space:
mode:
Diffstat (limited to 'code/runcontext.rb')
-rw-r--r--code/runcontext.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/code/runcontext.rb b/code/runcontext.rb
index df9f3a81..f39e80d3 100644
--- a/code/runcontext.rb
+++ b/code/runcontext.rb
@@ -41,6 +41,10 @@ class RunContext
 			@files = [files.dup]
 		end
 		self.flags = flags || ''
+
+		if !@all and ( cf = Fm.currentfile ).is_a? Directory::Entry
+			@files = [cf]
+		end
 		
 		@files.reject! {|file|
 			file.handler == nil or !file.exists?