summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndy Waite <andyw8@users.noreply.github.com>2023-08-29 16:42:43 -0400
committergit <svn-admin@ruby-lang.org>2023-09-06 18:37:41 +0000
commitfdf7aad902ccc9e2f32e4b6b3e21fb68a8788d16 (patch)
treecad230e27e923e4ccf9ca3a401e5e01237fda7c2 /lib
parent12102d101af258d7a3e9695b736a189cd3658df1 (diff)
[ruby/yarp] Fix `Location#end_column`
https://github.com/ruby/yarp/commit/00e4711026
Diffstat (limited to 'lib')
-rw-r--r--lib/yarp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yarp.rb b/lib/yarp.rb
index 0dab1515fc..769b149bca 100644
--- a/lib/yarp.rb
+++ b/lib/yarp.rb
@@ -95,7 +95,7 @@ module YARP
# The column number in bytes where this location ends from the start of the
# line.
def end_column
- source.column(end_offset - 1)
+ source.column(end_offset)
end
def deconstruct_keys(keys)