1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/reline
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
..
windows Tests for Windows can run only on Windows 2021-08-05 13:58:07 +09:00
yamatanooroti [ruby/reline] Correct padding space calculation 2021-11-21 13:56:26 +09:00
helper.rb Use TERM=xterm for tests on Solaris 2021-08-07 22:58:59 +09:00
test_config.rb [ruby/reline] Check empty .inputrc 2021-07-30 02:27:02 +09:00
test_history.rb
test_key_actor_emacs.rb [ruby/reline] Support ed_argument_digit by M+num 2021-09-29 22:07:49 +09:00
test_key_actor_vi.rb [ruby/reline] Fix tests so that the completion journey starts on first C-n/C-p 2021-08-29 20:30:33 +09:00
test_key_stroke.rb [ruby/reline] Add a test for key bindings with Reline::Key 2021-09-06 08:10:08 +09:00
test_kill_ring.rb
test_macro.rb
test_reline.rb [ruby/reline] Skip when unable to set input 2021-10-13 02:24:01 +09:00
test_reline_key.rb [ruby/reline] Fix test class not to overwrite 2021-10-11 20:32:34 +09:00
test_string_processing.rb
test_terminfo.rb Set TERM env for some CI environments 2021-08-07 21:16:49 +09:00
test_unicode.rb [ruby/reline] Add a test for Reline::Unicode#take_range 2021-09-06 08:09:50 +09:00
test_within_pipe.rb Revert "Omit some tests until debugging is complete" 2021-08-31 20:35:04 +09:00