diff options
author | Schneems <richard.schneeman+foo@gmail.com> | 2023-12-04 16:17:19 -0600 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-12-04 22:18:40 +0000 |
commit | 13482ab1e61e0c337badd6308412621f807df9c1 (patch) | |
tree | 274b4222aad75f93f9d3cd2776bb3fbf2e90c44b /lib/syntax_suggest/scan_history.rb | |
parent | 81a700853d1d3bdf7973c7d7175711e7e8c508c7 (diff) | |
download | ruby-13482ab1e61e0c337badd6308412621f807df9c1.tar.gz |
[ruby/syntax_suggest] Update standardrb to Ruby 3.0 standards
https://github.com/ruby/syntax_suggest/commit/2771dcabe0
Diffstat (limited to 'lib/syntax_suggest/scan_history.rb')
-rw-r--r-- | lib/syntax_suggest/scan_history.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/syntax_suggest/scan_history.rb b/lib/syntax_suggest/scan_history.rb index d15597c440..dc36e6ba2e 100644 --- a/lib/syntax_suggest/scan_history.rb +++ b/lib/syntax_suggest/scan_history.rb @@ -118,7 +118,7 @@ module SyntaxSuggest # Returns an array of all the CodeLines that exist after # the currently scanned block private def after_lines - @code_lines[@after_index.next..-1] || [] + @code_lines[@after_index.next..] || [] end private def current |