aboutsummaryrefslogtreecommitdiff
path: root/lib/render-msg.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-09-11 14:39:57 -0400
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-09-11 14:39:57 -0400
commit7f48a3c6b8aefa5f37c592a4dfb7d78346d904ba (patch)
treeea3f1a480f1801ea6f27901fd30aac4217a2267c /lib/render-msg.js
parent985fd15dd1ed350ac505eccba96d9de072db45e0 (diff)
downloadpatchfoo-7f48a3c6b8aefa5f37c592a4dfb7d78346d904ba.tar.gz
patchfoo-7f48a3c6b8aefa5f37c592a4dfb7d78346d904ba.zip
Support [0, 0]
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r--lib/render-msg.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index 7883dee..97b71d7 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -397,7 +397,7 @@ RenderMsg.prototype.post = function (cb) {
forkLinks.map(function (a, i) {
return h('div', h('small', h('span.symbol', '⑂'), ' ', a))
}),
- self.c.x || self.c.y ? h('div', h('small', '[' + self.c.x + ', ' + self.c.y + ']')) : '',
+ typeof self.c.x === 'number' || typeof self.c.y === 'number' ? h('div', h('small', '[' + self.c.x + ', ' + self.c.y + ']')) : '',
self.c.tags ? h('div', h('small', 'tags: ', u.toArray(self.c.tags).map(function (tag, i) {
return [i > 0 ? ', ' : '', h('code', tag)]
}))) : '',