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
..
2021-09-03 17:50:00 +09:00
2021-10-22 21:00:23 -04:00
2021-03-26 12:37:37 +09:00
2021-11-16 20:55:33 +09:00
2021-10-14 20:09:41 +09:00
2021-10-22 21:56:26 -04:00
2021-10-15 19:59:14 +09:00
2021-04-21 20:44:55 +09:00
2021-09-01 09:15:57 +09:00
2021-09-28 17:36:41 +09:00
2021-08-24 18:02:44 +09:00
2021-07-27 17:34:13 +09:00