lib/sup/textfield.rb in sup-1.0 vs lib/sup/textfield.rb in sup-1.1
- old
+ new
@@ -117,10 +117,9 @@
Ncurses::Form::REQ_BEG_FIELD
when Ncurses::KEY_END
Ncurses::Form::REQ_END_FIELD
when Ncurses::KEY_UP, Ncurses::KEY_DOWN
unless !@i || @history.empty?
- value = get_cursed_value
#debug "history before #{@history.inspect}"
@i = @i + (c.is_keycode?(Ncurses::KEY_UP) ? -1 : 1)
@i = 0 if @i < 0
@i = @history.size if @i > @history.size
@value = @history[@i] || ''