Skip to content

Commit

Permalink
fix (read) in the Web REPL
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Feb 5, 2024
1 parent d40c22b commit 543c99f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
* remove dependencies on `cond` from `-->` macro so you can use use `-->` inside `cond`
* fix handling of recursive `flatten` `syntax-rules` macro [#304](https://github.com/jcubic/lips/issues/304)
* fix syntax-rules macro that manipulate code (see tests/syntax.scm and undswap macro)
* fix `(read)` in the Web REPL

## 1.0.0-beta.18
### Breaking
Expand Down
4 changes: 4 additions & 0 deletions lib/js/terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ var terminal = (function($) {
}),
// ---------------------------------------------------------------------
stdin: lips.InputPort(function() {
setTimeout(() => {
// resume terminal wehn read called in REPL

Check failure on line 32 in lib/js/terminal.js

View workflow job for this annotation

GitHub Actions / Check for spelling errors

wehn ==> when
term.resume();
}, 0);
return term.read('');
}),
// ---------------------------------------------------------------------
Expand Down

0 comments on commit 543c99f

Please sign in to comment.