Skip to content

Commit fd43c2b

Browse files
committed
Fix locator position comparison
1 parent fcff0a5 commit fd43c2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rbs/locator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def find_in_loc(pos, location:, array:)
238238

239239
def test_loc(pos, location:)
240240
if location
241-
location.range === pos
241+
location.start_pos <= pos && pos <= location.end_pos
242242
else
243243
false
244244
end

0 commit comments

Comments
 (0)