2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-27 16:03:23 +00:00

fix: hilbish.sink.readAll() function now reads data that doesn't end in a newline ()

This commit is contained in:
James Dugan 2025-04-17 20:06:21 -06:00 committed by GitHub
parent 60edfc00ee
commit 3d5766ac33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

@ -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

@ -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
}