about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rwxr-xr-xbin/dtas-console4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/dtas-console b/bin/dtas-console
index eb246ee..0cb14fa 100755
--- a/bin/dtas-console
+++ b/bin/dtas-console
@@ -157,7 +157,9 @@ begin
         event = w.res_wait
         case event
         when "pause"
-          pause = current['infile'] || current['command']
+          if current
+            pause = current['infile'] || current['command']
+          end
         when %r{\Afile }
           pause = nil
         end