lib/sup/buffer.rb in sup-0.12 vs lib/sup/buffer.rb in sup-0.12.1
- old
+ new
@@ -573,9 +573,10 @@
## for simplicitly, we always place the question at the very bottom of the
## screen
def ask domain, question, default=nil, &block
raise "impossible!" if @asking
+ raise "Question too long" if Ncurses.cols <= question.length
@asking = true
@textfields[domain] ||= TextField.new
tf = @textfields[domain]
completion_buf = nil