Commit 0ca36d71 authored by mrowe@apple.com's avatar mrowe@apple.com

Print a blank line when exiting the jsc interactive mode to ensure that the shell

prompt will start on a new line.

Reviewed by Sam Weinig.

* kjs/Shell.cpp:
(runInteractive):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34728 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent dabce954
2008-06-21 Mark Rowe <mrowe@apple.com>
Reviewed by Sam Weinig.
Print a blank line when exiting the jsc interactive mode to ensure that the shell
prompt will start on a new line.
* kjs/Shell.cpp:
(runInteractive):
2008-06-21 Mark Rowe <mrowe@apple.com>
Rubber-stamped by Sam Weinig.
......
......@@ -347,9 +347,8 @@ static bool runWithScripts(GlobalObject* globalObject, const Vector<UString>& fi
}
static void runInteractive(GlobalObject* globalObject)
{
bool done = false;
while (!done) {
{
while (true) {
#if HAVE(READLINE)
char* line = readline(interactivePrompt);
if (!line)
......@@ -374,6 +373,7 @@ static void runInteractive(GlobalObject* globalObject)
if (completion.isValueCompletion())
printf("%s\n", completion.value()->toString(globalObject->globalExec()).UTF8String().c_str());
}
printf("\n");
}
static void printUsageStatement()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment