Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cursor_pos error: undefined method pre_match' for nil:NilClass` #158

Merged
merged 1 commit into from
Aug 21, 2020

Conversation

tompng
Copy link
Member

@tompng tompng commented Jul 28, 2020

/opt/ruby/lib/ruby/2.8.0/reline/ansi.rb:112:in `block in cursor_pos': undefined method `pre_match' for nil:NilClass (NoMethodError)

Reproduce 1:

Type irb\nRubyVM[tab][tab] quickly (type R before irb prompt is shown)

% irb
RubyVM[tab]

Reproduce 2:

Paste long code that includes R
irb(main):001:0> 10.times{RRRRRRRRRRRRRRRRRRRRRR...
then resize window before paste completes.

@aycabta aycabta merged commit 3d2fe49 into ruby:master Aug 21, 2020
@tompng tompng deleted the fix_cursor_pos_error branch September 3, 2020 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants