1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
ima1zumi f5829e2935 [ruby/reline] Correct padding space calculation
fix https://github.com/ruby/irb/issues/308

This bug occurred when `dialog.width - calculate_width(s, true)` was negative.

When `dialog.width` is shorter than `old_dialog.width`, it calculates how much padding it has to do. However, there are cases where `s` is longer than `dialog.width`, as in the issue. In that case, `padding_space_with_escape_sequences` will crash.

Here, `old_dialog.width` is longer than `dialog.width`, so I changed the padding width to `old_dialog.width - dialog.width`.

https://github.com/ruby/reline/commit/c581c31e0f
2021-11-21 13:56:26 +09:00
..
-ext- Rename ::YJIT to RubyVM::YJIT 2021-10-28 13:43:02 -04:00
base64
benchmark
bigdecimal Import bigdecimal-3.1.0.dev 2021-10-22 15:53:49 +09:00
cgi
coverage Make Coverage suspendable (#4856) 2021-10-25 20:00:51 +09:00
csv [ruby/csv] Add support for Ractor (https://github.com/ruby/csv/pull/218) 2021-10-24 05:57:33 +09:00
date [ruby/date] check_limit: also handle symbols 2021-11-16 22:51:41 +09:00
did_you_mean Sync did_you_mean again 2021-10-22 21:00:23 -04:00
digest
drb
dtrace
erb
error_highlight [ruby/error_highlight] Make the formatter mechanism support Ractor 2021-10-27 11:29:20 +09:00
etc
excludes
fiber Mark IO::Buffer as experimental. 2021-11-10 19:21:05 +13:00
fiddle
fileutils
fixtures/fake_sorted_set_gem
io [ruby/io-wait] Disable ractor test which is meaningless on earlier versions 2021-11-16 20:25:44 +09:00
irb Skip TestIRB::TestInit#test_recovery_sigint on Solaris 2021-11-05 20:03:11 +09:00
json
lib Disable YJIT in MJIT tests 2021-10-20 18:19:38 -04:00
logger
mkmf
monitor
net Sync test_http_request.rb after fix to net-http 2021-11-15 09:31:44 -08:00
nkf
objspace [Feature #18239] Implement VWA for strings 2021-10-25 13:26:23 -04:00
open-uri
openssl test/openssl/test_ssl: adjust certificate expiry date 2021-11-11 17:59:22 +09:00
optparse [ruby/optparse] Fix typo [ci skip] 2021-11-03 19:55:24 +09:00
ostruct
pathname
psych
racc
rdoc [ruby/rdoc] Fix typos in test method names [ci skip] 2021-11-04 08:56:38 +09:00
readline test/readline/test_readline.rb: skip a test on i686-linux 2021-11-09 14:52:48 +09:00
reline [ruby/reline] Correct padding space calculation 2021-11-21 13:56:26 +09:00
resolv
rinda
ripper
ruby Fix setting struct member by public_send 2021-11-21 00:31:51 +09:00
rubygems [rubygems/rubygems] Gem::Specification.reset already clears loaded spec cache 2021-11-18 04:37:26 +09:00
socket
stringio
strscan
syslog
uri 'uri/https' is needed 2021-10-22 23:56:07 +09:00
win32ole
yaml
zlib
runner.rb Disable experimental warnings in test/runner.rb 2021-11-10 17:42:09 +09:00
test_abbrev.rb
test_delegate.rb
test_extlibs.rb
test_find.rb
test_forwardable.rb
test_getoptlong.rb [ruby/getoptlong] fixup 5f57f47572502173e2e8880f83ef7b3e2659f974 2021-11-11 14:00:32 +09:00
test_ipaddr.rb
test_mutex_m.rb
test_observer.rb
test_open3.rb
test_pp.rb
test_prettyprint.rb
test_pstore.rb
test_pty.rb
test_rbconfig.rb
test_securerandom.rb
test_set.rb
test_shellwords.rb
test_singleton.rb
test_sorted_set.rb
test_syslog.rb
test_tempfile.rb
test_time.rb
test_timeout.rb
test_tmpdir.rb
test_trick.rb
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb