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

follow up the actual line number #181

Merged
merged 1 commit into from
Feb 2, 2021
Merged

follow up the actual line number #181

merged 1 commit into from
Feb 2, 2021

Conversation

no6v
Copy link
Contributor

@no6v no6v commented Feb 2, 2021

Empty lines do not increment __LINE__ as follow:

$ bundle exec bin/console -f
irb(main):001:0> 
irb(main):002:0> __LINE__
=> 1
irb(main):003:0> __LINE__
=> 3
irb(main):004:0> 
irb(main):005:0> 
irb(main):006:0> __LINE__
=> 4
irb(main):007:0> 

This PR fixes this behavior to follow up the actual line number.

$ bundle exec bin/console -f
irb(main):001:0> 
irb(main):002:0> __LINE__
=> 2
irb(main):003:0> __LINE__
=> 3
irb(main):004:0> 
irb(main):005:0> 
irb(main):006:0> __LINE__
=> 6
irb(main):007:0> 

@aycabta aycabta merged commit f5fcdcb into ruby:master Feb 2, 2021
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