commit 18762fa0319c3fdc2eacbe8c043bcd6f7ad668a2
parent 779a90fa2de7c8165f505d85b6fc5d5e76d293a7
Author: William Morgan <wmorgan-sup@masanjin.net>
Date: Sat, 2 Feb 2008 17:49:12 -0800
Merge branch 'ask-getch-fix' into next
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb
@@ -557,7 +557,6 @@ EOS
def ask_getch question, accept=nil
raise "impossible!" if @asking
- @asking = true
accept = accept.split(//).map { |x| x[0] } if accept
@@ -570,6 +569,7 @@ EOS
Ncurses.refresh
end
+ @asking = true
ret = nil
done = false
until done