lib/textbringer/controller.rb in textbringer-0.3.2 vs lib/textbringer/controller.rb in textbringer-1.0.0
- old
+ new
@@ -126,11 +126,11 @@
if Window.echo_area.active?
wait_files = [STDIN]
else
wait_files = [STDIN, @next_tick_input]
end
- files, = IO.select(wait_files, [], [], 1)
+ files, = IO.select(wait_files, nil, nil, 1)
# KEY_RESIZE may be returned even if STDIN is not included in files.
event = read_event_nonblock
if event
return event
end
@@ -176,10 +176,10 @@
if @prefix_arg || !@key_sequence.empty?
if !@echo_immediately
return if wait_input(1000)
end
@echo_immediately = true
- s = String.new
+ s = +""
if @prefix_arg
s << "C-u"
if @prefix_arg != [4]
s << "(#{@prefix_arg.inspect})"
end