diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb
index 14c1607..8cf5ee4 100644
--- a/lib/sup/buffer.rb
+++ b/lib/sup/buffer.rb
@@ -645,7 +645,7 @@ EOS
## returns true (y), false (n), or nil (ctrl-g / cancel)
def ask_yes_or_no question
case(r = ask_getch question, "ynYN")
- when ?y.ord, ?Y.ord
+ when ?y, ?Y
true
when nil
nil
The above patch fixes the bug. I don't know how that affects ruby 1.9 though.
Thanks.
|