From 4ebd5685f85032fc143d882d767712ed27258e04 Mon Sep 17 00:00:00 2001 From: Joaquin Iglesias Turina Date: Tue, 12 Apr 2022 18:46:28 +0200 Subject: [PATCH] wrap io.read with tostring to avoid windows concat issue --- lib/stdio.fnl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stdio.fnl b/lib/stdio.fnl index 9135c85..4793972 100644 --- a/lib/stdio.fnl +++ b/lib/stdio.fnl @@ -4,7 +4,7 @@ ;; can be used in a non-blocking way from another thread. (fn prompt [cont?] - (io.write (if cont? ".." ">> ")) (io.flush) (.. (io.read) "\n")) + (io.write (if cont? ".." ">> ")) (io.flush) (.. (tostring (io.read)) "\n")) ;; This module is loaded twice: initially in the main thread where ... is nil, ;; and then again in a separate thread where ... contains the channel used to