mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-27 18:23:30 +01:00
Fix :regressions white space
This commit is contained in:
@@ -826,11 +826,9 @@ function CommandLine() //{{{
|
|||||||
}
|
}
|
||||||
else if (messageHistory.length > 1)
|
else if (messageHistory.length > 1)
|
||||||
{
|
{
|
||||||
let list = <></>;
|
XML.ignoreWhitespace = false;
|
||||||
|
let list = template.map(messageHistory.messages, function (message)
|
||||||
for (let [,message] in Iterator(messageHistory.messages))
|
<div highlight={message.highlight + " Message"}>{message.str}</div>);
|
||||||
list += <div highlight={message.highlight + " Message"}>{message.str}</div>;
|
|
||||||
|
|
||||||
liberator.echo(list, commandline.FORCE_MULTILINE);
|
liberator.echo(list, commandline.FORCE_MULTILINE);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -948,6 +946,8 @@ function CommandLine() //{{{
|
|||||||
|
|
||||||
highlightGroup = highlightGroup || this.HL_NORMAL;
|
highlightGroup = highlightGroup || this.HL_NORMAL;
|
||||||
|
|
||||||
|
// liberator.dump(String(str));
|
||||||
|
// try { liberator.dump(str.toXMLString()) } catch(e) {};
|
||||||
if (flags & this.APPEND_TO_MESSAGES)
|
if (flags & this.APPEND_TO_MESSAGES)
|
||||||
messageHistory.add({ str: str, highlight: highlightGroup });
|
messageHistory.add({ str: str, highlight: highlightGroup });
|
||||||
|
|
||||||
@@ -1101,8 +1101,7 @@ function CommandLine() //{{{
|
|||||||
else if (key == "<BS>")
|
else if (key == "<BS>")
|
||||||
{
|
{
|
||||||
// reset the tab completion
|
// reset the tab completion
|
||||||
history.reset();
|
this.resetCompletions();
|
||||||
completions.reset();
|
|
||||||
|
|
||||||
// and blur the command line if there is no text left
|
// and blur the command line if there is no text left
|
||||||
if (command.length == 0)
|
if (command.length == 0)
|
||||||
|
|||||||
@@ -167,8 +167,10 @@ commands.addUserCommand(["regr[essions]"],
|
|||||||
}
|
}
|
||||||
|
|
||||||
let runTests = (args.count >= 1 ? 1 : totalTests) - skippedTests;
|
let runTests = (args.count >= 1 ? 1 : totalTests) - skippedTests;
|
||||||
|
XML.ignoreWhitespace = false;
|
||||||
liberator.echomsg(<><span style="font-weight: bold">{successfulTests}</span> of <span style="font-weight: bold">{runTests}</span>
|
liberator.echomsg(<><span style="font-weight: bold">{successfulTests}</span> of <span style="font-weight: bold">{runTests}</span>
|
||||||
tests successfully completed (<span style="font-weight: bold">{skippedTests}</span> tests skipped) in <span class="time-total">{((Date.now() - now) / 1000.0)}</span> msec</>);
|
tests successfully completed (<span style="font-weight: bold">{skippedTests}</span> tests skipped) in
|
||||||
|
<span class="time-total">{((Date.now() - now) / 1000.0)}</span> msec</>);
|
||||||
liberator.execute(":messages");
|
liberator.execute(":messages");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user