Skip to content

Commit

Permalink
Add 1 to linecount
Browse files Browse the repository at this point in the history
  • Loading branch information
joereynolds committed May 31, 2018
1 parent 0698d74 commit 92fc033
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/src/selectors.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/src/selectors.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class Selectors {
// We have two divide by 2 because for some reason
// The file is twice the line count of the original
// file, TODO - Fix this.
const lineCount = Math.floor((i - index) / 2);
const lineCount = Math.floor((i - index) / 2) + 1;
return lineCount;
}
}
Expand Down

0 comments on commit 92fc033

Please sign in to comment.