Closed owst closed 1 year ago
I'm using iterm2 and the latest stable version of reline and irb, I'm not seeing this problem
This is fixed in https://github.com/ruby/reline/pull/474 I checked before and after this change commit. Confirmed the same problem only before this fix commit.
It's likely to happen when the pasted code is large, and the required code size to reproduce seems to depends on terminal emulator.
Description
I upgraded
irb
andreline
to avoid issues with slow pasting of code as suggested in https://github.com/ruby/irb/issues/43#issuecomment-758089211The speed of pasting is much faster but the output seems broken for this particular input when using
iterm
, specifically the last few lines of the pasted code seem to be repeated many many times, maybe 100.The input was randomly obfuscated from the source that I originally saw the issue with, however, removing lines (e.g. the commented section), or changing the line length causes the issue to stop happening.
Asciinema showing the problematic code being pasted and then the same code (without commented block) which shows no issue:
I also tested using
Terminal.app, Version 2.9.5 (421.2)
and there was no problem.Result of irb_info
Terminal Emulator
iTerm2: