From 2b2ec9550d63619b643b6b2f4609a3dd76861e1c Mon Sep 17 00:00:00 2001 From: Shadman Date: Mon, 26 Jul 2021 21:29:22 +0600 Subject: Fix: yue -- not stoping read at EOF (#60) --- src/yue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yue.cpp b/src/yue.cpp index b5f91ff..bf0ac24 100644 --- a/src/yue.cpp +++ b/src/yue.cpp @@ -271,7 +271,7 @@ int main(int narg, const char** args) { } char ch; std::string codes; - while ((ch = std::cin.get()) != EOF) { + while ((ch = std::cin.get()) && !std::cin.eof()) { codes += ch; } yue::YueConfig conf; -- cgit v1.2.3-55-g6feb