Skip to content

Commit

Permalink
Do not feed eval op with zero based line and col
Browse files Browse the repository at this point in the history
Fixes #354
  • Loading branch information
PEZ committed Sep 29, 2019
1 parent 3238470 commit 95adcd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions calva/evaluate.ts
Expand Up @@ -56,8 +56,8 @@ async function evaluateSelection(document = {}, options = {}) {
filePath = doc.fileName,
context = client.eval(code, {
file: filePath,
line: line,
column: column,
line: line + 1,
column: column + 1,
stdout: m => out.push(m),
stderr: m => err.push(m),
pprint: !!pprint
Expand Down

0 comments on commit 95adcd7

Please sign in to comment.