diff --git a/CHANGELOG.md b/CHANGELOG.md index 011fce6..c07d540 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ ### Fixed - Skip over file and prevent panic if info cannot be retrieved during file completion (due to permission error or anything else) - Apply environment variables properly after 2.3 shell interpreter changes +- hilbish.sink.readAll() function now reads data that doesn't end in a newline ## [2.3.3] - 2024-11-04 ### Fixed diff --git a/util/sink.go b/util/sink.go index 8d1167e..c433494 100644 --- a/util/sink.go +++ b/util/sink.go @@ -99,6 +99,8 @@ func luaSinkReadAll(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) { line, err := s.Rw.ReadString('\n') if err != nil { if err == io.EOF { + // We still want to add the data we read + lines = append(lines, line) break }