lib/scss_lint/linter.rb in scss-lint-0.23.0 vs lib/scss_lint/linter.rb in scss-lint-0.23.1

- old
+ new

@@ -42,10 +42,10 @@ # @return [SCSSLint::Location] def location_from_range(range) length = if range.start_pos.line == range.end_pos.line range.end_pos.offset - range.start_pos.offset else - line_source = engine.lines[range.start_pos.line] + line_source = engine.lines[range.start_pos.line - 1] line_source.length - range.start_pos.offset + 1 end Location.new(range.start_pos.line, range.start_pos.offset, length) end