Browse Source

fixed jsconsole getline

cl-refactor
unknown 10 years ago
parent
commit
4333752691
  1. 5
      libjsconsole/JSConsole.h

5
libjsconsole/JSConsole.h

@ -65,10 +65,11 @@ public:
free(buff); free(buff);
} }
#else #else
std::cout << promptForIndentionLevel(openBrackets) << std::endl << std::flush; std::cout << promptForIndentionLevel(openBrackets) << std::flush;
std::getline(std::cin, rl); std::getline(std::cin, rl);
isEmpty = rl.length() == 0;
#endif #endif
if (rl.length() > 0) if (!isEmpty)
{ {
cmd += rl; cmd += rl;
cmd += " "; cmd += " ";

Loading…
Cancel
Save