aboutsummaryrefslogtreecommitdiffstats
path: root/memo.js
diff options
context:
space:
mode:
Diffstat (limited to 'memo.js')
-rw-r--r--memo.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/memo.js b/memo.js
index ef94ad0..53f19c1 100644
--- a/memo.js
+++ b/memo.js
@@ -122,9 +122,9 @@ let PLUGIN_INFO = xml`
if (arg.literalArg) {
puts(arg.literalArg);
} else {
- let out = ``;
+ let out = xml``;
gets().split(/\n/).reverse().forEach(function (l) {
- out += <li>{l}</li>
+ out += xml`<li>${l}</li>`;
});
liberator.echo(out);
}
@@ -142,16 +142,16 @@ let PLUGIN_INFO = xml`
let desc = item[1] || this.process[1].call(this, item, item.description);
if (item.description && item.description.length) {
- return <div highlight={highlightGroup || "CompItem"} style="white-space: nowrap">
+ return xml`<div highlight=${highlightGroup || "CompItem"} style="white-space: nowrap">
<li highlight="CompDesc">
- {item.description}
+ ${item.description}
</li>
- </div>;
+ </div>`;
}
- return <div highlight={highlightGroup || "CompItem"} style="white-space: nowrap">
- <li highlight="CompDesc">{item[0]}&#160;</li>
- </div>;
+ return xml`<div highlight=${highlightGroup || "CompItem"} style="white-space: nowrap">
+ <li highlight="CompDesc">${item[0]}&#160;</li>
+ </div>`;
};
context.filters = [function (item) this.match(item.description)];