blueloveTH 2 년 전
부모
커밋
a2b25f6735
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/repl.h

+ 1 - 0
src/repl.h

@@ -23,6 +23,7 @@ inline std::string getline(bool* eof=nullptr) {
     std::string output;
     std::string output;
     output.resize(length);
     output.resize(length);
     WideCharToMultiByte(CP_UTF8, 0, wideInput.c_str(), (int)wideInput.length(), &output[0], length, NULL, NULL);
     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;
     return output;
 }
 }