Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Fix for #52 (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
RensAlthuis authored and serayuzgur committed Oct 3, 2019
1 parent e8e80b4 commit b1cee7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/toml/decorations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ function decoration(
// Also handle json valued dependencies

const start = item.start;
const end = item.end;
const endofline = editor.document.lineAt(editor.document.positionAt(item.end)).range.end;
const end = editor.document.offsetAt(endofline);
const currentVersion = item.value;

const hasLatest =
Expand Down

0 comments on commit b1cee7a

Please sign in to comment.