Skip to content

Commit 825f78f

Browse files
authored
Merge pull request #5 from CocaColf/fix/fix_function_block_content_incorrect
fix: fix function bloclk content incorrect while reading by lines
2 parents 82d5719 + 3e9b3ef commit 825f78f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/function_change/diff.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function getFileLinesString (filePath: string, start: number, end: number): stri
4242
let line = liner.next();
4343

4444
while (line) {
45-
if (lineNumber >= start && lineNumber <= end) {
45+
if (lineNumber >= (start - 1) && lineNumber <= (end - 1)) {
4646
result.push(line.toString());
4747
}
4848

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy