Skip to content

Commit

Permalink
Merge pull request #309 from osyo-manga/fix-pasting-multiline
Browse files Browse the repository at this point in the history
Fix bug infinite loop when pasting multilines fo code in Ruby 2.6
  • Loading branch information
aycabta authored Dec 2, 2021
2 parents bd597bc + 0a77f75 commit 7820fff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/irb/ruby-lex.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def self.ripper_lex_without_warning(code, context: nil)
end
end
else
tokens = lexer.parse
tokens = lexer.parse.reject { |it| it.pos.first == 0 }
end
end
tokens
Expand Down

0 comments on commit 7820fff

Please sign in to comment.