lib/sup/textfield.rb in sup-0.15.3 vs lib/sup/textfield.rb in sup-0.15.4
- old
+ new
@@ -232,9 +232,10 @@
Ncurses::Form::REQ_PREV_CHAR
end
end
def set_cursed_value v
+ v = "" if v.nil?
@field.set_field_buffer 0, v
end
def cursed_value_after_point
point = Ncurses.curx - @question.length