Skip to content

Commit

Permalink
Fix bug that number of lines in a file are not counted correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ono-max authored and ko1 committed Oct 25, 2021
1 parent 24aac90 commit 7020925
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/debug/server_cdp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def process
url: "http://debuggee#{abs}",
startLine: 0,
startColumn: 0,
endLine: src.count('\n'),
endLine: src.count("\n"),
endColumn: 0,
executionContextId: 1,
hash: src.hash
Expand Down Expand Up @@ -269,7 +269,7 @@ def cdp_event args
url: frame[:url],
startLine: 0,
startColumn: 0,
endLine: src.count('\n'),
endLine: src.count("\n"),
endColumn: 0,
executionContextId: @script_paths.size + 1,
hash: src.hash
Expand Down

0 comments on commit 7020925

Please sign in to comment.