Age | Commit message (Collapse) | Author |
|
https://github.com/ruby/reline/commit/90e8999ae4
|
|
https://github.com/ruby/reline/commit/92dbac0bff
|
|
https://github.com/ruby/reline/commit/479eee5393
|
|
(pointer == -1)
https://github.com/ruby/reline/commit/1d7b603811
|
|
https://github.com/ruby/reline/commit/92518d1dee
|
|
Integer
https://github.com/ruby/reline/commit/8fca5f6f9c
|
|
key sequences
https://github.com/ruby/reline/commit/731103f9c9
|
|
https://github.com/ruby/reline/commit/cf78a38064
|
|
https://github.com/ruby/reline/commit/1fc3276c01
|
|
https://github.com/ruby/reline/commit/ebc3e0f673
|
|
https://github.com/ruby/reline/commit/4c7fc42151
|
|
https://github.com/ruby/reline/commit/fe7e34e79f
|
|
https://github.com/ruby/reline/commit/8f6aa3af2e
|
|
https://github.com/ruby/reline/commit/261830fda3
|
|
https://github.com/ruby/reline/commit/3d70e07331
|
|
https://github.com/ruby/reline/commit/5da6a8d851
|
|
https://github.com/ruby/reline/commit/d81f29a134
|
|
https://github.com/ruby/reline/commit/7e18716754
|
|
https://github.com/ruby/reline/commit/dc79ed2dd8
|
|
https://github.com/ruby/reline/commit/ac6f652a39
|
|
https://github.com/ruby/reline/commit/71c2eb143d
|
|
https://github.com/ruby/reline/commit/a2e69f6277
|
|
https://github.com/ruby/reline/commit/22d0b4e5d8
|
|
https://github.com/ruby/reline/commit/d027dbe118
|
|
https://github.com/ruby/reline/commit/640102fe27
|
|
https://github.com/ruby/reline/commit/3b8cc5ce0a
|
|
https://github.com/ruby/reline/commit/ac8fa84f4d
|
|
https://github.com/ruby/reline/commit/9100ea2934
|
|
https://github.com/ruby/reline/commit/5e67e6ffe0
|
|
https://github.com/ruby/reline/commit/7d1c75b43f
|
|
https://github.com/ruby/reline/commit/cd0cbf53d5
|
|
https://github.com/ruby/reline/commit/a505294f12
|
|
https://github.com/ruby/reline/commit/e97bbc4ccf
|
|
https://github.com/ruby/reline/commit/063d9c70d9
|
|
https://github.com/ruby/reline/commit/f589fab718
|
|
https://github.com/ruby/reline/commit/46aa2694da
|
|
https://github.com/ruby/reline/commit/e46437df00
|
|
https://github.com/ruby/reline/commit/07e911ec8e
|
|
https://github.com/ruby/reline/commit/6370353c71
|
|
https://github.com/ruby/reline/commit/f31a76ff31
|
|
https://github.com/ruby/reline/commit/49f3392d59
|
|
https://github.com/ruby/reline/commit/1401d6165e
|
|
https://github.com/ruby/reline/commit/7ef9805b35
|
|
|
|
https://github.com/ruby/reline/commit/301ed11bec
|
|
This fixes an error when output is redirected:
```
$ run_ruby -rreline -e '$stderr.puts Reline::Unicode.calculate_width("\u221a").inspect' </dev/null >/dev/null
/home/jeremy/tmp/ruby/lib/reline/ansi.rb:189:in `raw': Operation not supported by device (Errno::ENODEV)
```
The @@encoding -> defined?(@@encoding) changes is necessary because
without that part of the commit, the following error would be raised
by the above command:
```
/home/jeremy/tmp/reline/lib/reline/general_io.rb:10:in `encoding': uninitialized class variable @@encoding in Reline::GeneralIO (NameError)
```
Problem reported and initial patch for Windows provided by
Richard Sharman.
I tested this only on OpenBSD, but hopefully it works for other
operating systems.
Fixes [Bug #17493]
https://github.com/ruby/reline/commit/c001971bb3
|
|
https://github.com/ruby/reline/commit/ee23e6f3f8
|
|
https://github.com/ruby/reline/commit/43ac03c624
|
|
Because it's too slow.
The rendering time in IRB has been reduced as follows:
start = Time.now
def each_top_level_statement
initialize_input
catch(:TERM_INPUT) do
loop do
begin
prompt
unless l = lex
throw :TERM_INPUT if @line == ''
else
@line_no += l.count("\n")
next if l == "\n"
@line.concat l
if @code_block_open or @ltype or @continue or @indent > 0
next
end
end
if @line != "\n"
@line.force_encoding(@io.encoding)
yield @line, @exp_line_no
end
break if @io.eof?
@line = ''
@exp_line_no = @line_no
@indent = 0
rescue TerminateLineInput
initialize_input
prompt
end
end
end
end
puts "Duration: #{Time.now - start} seconds"
0.22sec -> 0.14sec
https://github.com/ruby/reline/commit/b8b3dd52c0
|
|
https://github.com/ruby/reline/commit/ecdc1b7116
https://github.com/ruby/reline/commit/a7922da16b
|