Skip to content

Commit

Permalink
Merge pull request #2447 from kurtharriger/fix-range-error
Browse files Browse the repository at this point in the history
Fix range error
  • Loading branch information
PEZ authored Mar 22, 2024
2 parents 85d1571 + f1f9772 commit 8872830
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Changes to Calva.

## [Unreleased]

- Fix: [Range Error](https://github.com/BetterThanTomorrow/calva/issues/2443)

## [2.0.425] - 2024-03-21

- [Add Paredit Kill Left equivalent to Kill Right](https://github.com/BetterThanTomorrow/calva/issues/2426)
Expand Down
7 changes: 4 additions & 3 deletions src/nrepl/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -527,16 +527,17 @@ export class NReplSession {
opts['pprint'] = pprintOptions.enabled;
delete opts.pprintOptions;
const extraOpts = getServerSidePrinter(pprintOptions);
const { stderr, stdout, ...optsLessOut } = opts;
const evaluation = new NReplEvaluation(
id,
this,
opts.stderr,
opts.stdout,
stderr,
stdout,
null,
new Promise((resolve, reject) => {
const msg = {
...extraOpts,
...opts,
...optsLessOut,
op: 'load-file',
session: this.sessionId,
file,
Expand Down

0 comments on commit 8872830

Please sign in to comment.