1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 07:12:28 +01:00

Fix :regressions white space

This commit is contained in:
Kris Maglione
2008-12-08 09:48:03 -05:00
parent cd84d64b43
commit 6f8e39e84e
2 changed files with 9 additions and 8 deletions

View File

@@ -826,11 +826,9 @@ function CommandLine() //{{{
}
else if (messageHistory.length > 1)
{
let list = <></>;
for (let [,message] in Iterator(messageHistory.messages))
list += <div highlight={message.highlight + " Message"}>{message.str}</div>;
XML.ignoreWhitespace = false;
let list = template.map(messageHistory.messages, function (message)
<div highlight={message.highlight + " Message"}>{message.str}</div>);
liberator.echo(list, commandline.FORCE_MULTILINE);
}
},
@@ -948,6 +946,8 @@ function CommandLine() //{{{
highlightGroup = highlightGroup || this.HL_NORMAL;
// liberator.dump(String(str));
// try { liberator.dump(str.toXMLString()) } catch(e) {};
if (flags & this.APPEND_TO_MESSAGES)
messageHistory.add({ str: str, highlight: highlightGroup });
@@ -1101,8 +1101,7 @@ function CommandLine() //{{{
else if (key == "<BS>")
{
// reset the tab completion
history.reset();
completions.reset();
this.resetCompletions();
// and blur the command line if there is no text left
if (command.length == 0)