about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-07-18 03:20:58 +0200
committerhut <hut@lavabit.com>2009-07-18 03:20:58 +0200
commit5b054522be861aba3d082c13c681276c32c11fa5 (patch)
tree585f19a257c7625213863b167e2d448f15079ef9
parent54e81304e90afb9f05181a9279f8ed9f40bb34e0 (diff)
downloadranger-5b054522be861aba3d082c13c681276c32c11fa5.tar.gz
fixed Action.wait_for_enter
if you supply an argument to the executable and use the function gets,
ruby seems to read from the file given in the first argument rather
than from stdin. in this case, that's not what i want.
-rw-r--r--code/action.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/action.rb b/code/action.rb
index 89ac0355..6e753296 100644
--- a/code/action.rb
+++ b/code/action.rb
@@ -69,7 +69,7 @@ module Action
 
 	def wait_for_enter
 		print "Press [ENTER] to continue..."
-		gets
+		$stdin.gets
 	end
 end