From e71bbefa44135f6e84912cd9ab824397dfb72286 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 9 Sep 2013 07:42:49 +0000 Subject: dtas-console: avoid using current if it is nil We may get a pause event when we do not have a valid current hash. --- bin/dtas-console | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/dtas-console') 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 -- cgit v1.2.3-24-ge0c7