Replies: 1 comment 2 replies
-
|
Hello In conclusion, it was a bug. diff --git a/oviewer/oviewer.go b/oviewer/oviewer.go
index f35cc91..350e35d 100644
--- a/oviewer/oviewer.go
+++ b/oviewer/oviewer.go
@@ -354,6 +354,9 @@ func NewRoot(read io.Reader) (*Root, error) {
if err != nil {
return nil, err
}
+ go func() {
+ <-m.eofCh
+ }()
if err := m.ReadAll(read); err != nil {
return nil, err
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Noboru,
I want to use the oviewer module for my application but I cannot get QuitSmall to work -- I set it to true but I notice two odd behaviors:
Test program below.
Passing to ov a file with a handful lines, or running "echo test | ./ov -F" yields the behavior I need, but how to achieve that same behavior when my application is an external user of oviewer?
Thanks in advance!
Eloy Paris.-
==========
Beta Was this translation helpful? Give feedback.
All reactions