1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-25 16:00:27 +00:00

Fix webclient.

This commit is contained in:
Calvin Rose 2019-10-14 20:55:04 -05:00
parent 7fd0748c19
commit 8dd322c0be
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
# Changelog # Changelog
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
## Unreleased
## 1.4.0 - 2019-10-14 ## 1.4.0 - 2019-10-14
- Add `quit` function to exit from a repl, but not always exit the entire - Add `quit` function to exit from a repl, but not always exit the entire
application. application.

View File

@ -5,7 +5,7 @@
(fiber/new (fn webrepl [] (fiber/new (fn webrepl []
(setdyn :pretty-format "%.20P") (setdyn :pretty-format "%.20P")
(repl (fn get-line [buf p] (repl (fn get-line [buf p]
(def offset (parser/where p)) (def [offset] (parser/where p))
(def prompt (string "janet:" offset ":" (parser/state p :delimiters) "> ")) (def prompt (string "janet:" offset ":" (parser/state p :delimiters) "> "))
(repl-yield prompt buf) (repl-yield prompt buf)
(yield) (yield)