Skip to content

Commit

Permalink
Off-by-one diagnostic (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
castwide committed Sep 30, 2022
1 parent f01fa0b commit 12fcf71
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.47.2 - September 30, 2022
- Fix complex type inference (#578)
- Off-by-one diagnostic (#595)

## 0.47.1 - September 27, 2022
- Remove debug code from release (#600)

Expand Down
2 changes: 1 addition & 1 deletion lib/solargraph/diagnostics/rubocop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def offense_ending_position off
Position.new(off['location']['start_line'], 0)
else
Position.new(
off['location']['start_line'] - 1, off['location']['last_column']
off['location']['start_line'] - 1, off['location']['last_column'] - 1
)
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/solargraph/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Solargraph
VERSION = '0.47.1'
VERSION = '0.47.2'
end

0 comments on commit 12fcf71

Please sign in to comment.