From a2b25f67356d5c79983ca4b87ff90365b931a996 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Wed, 26 Apr 2023 12:36:33 +0800 Subject: [PATCH] ... --- src/repl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/repl.h b/src/repl.h index d26ac615..1bf33ae3 100644 --- a/src/repl.h +++ b/src/repl.h @@ -23,6 +23,7 @@ inline std::string getline(bool* eof=nullptr) { std::string output; output.resize(length); WideCharToMultiByte(CP_UTF8, 0, wideInput.c_str(), (int)wideInput.length(), &output[0], length, NULL, NULL); + if(output.size() && output[output.size()-1] == '\r') output.pop_back(); return output; }