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);
}
#else
std::cout << promptForIndentionLevel(openBrackets) << std::endl << std::flush;
std::cout << promptForIndentionLevel(openBrackets) << std::flush;
std::getline(std::cin, rl);
isEmpty = rl.length() == 0;
#endif
if (rl.length() > 0)
if (!isEmpty)
{
cmd += rl;
cmd += " ";

Loading…
Cancel
Save