aboutsummaryrefslogtreecommitdiff
path: root/lib/render-msg.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-01-09 19:04:39 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-01-09 19:04:39 -1000
commit3c8e69899bcd403ed82bee2599bdd592150e5956 (patch)
treedd16c8c5d4044f86fffa1a4a768d1d5e37e4ad83 /lib/render-msg.js
parent095093482e485e936b29ec0e42f5e51ca9545ac6 (diff)
downloadpatchfoo-3c8e69899bcd403ed82bee2599bdd592150e5956.tar.gz
patchfoo-3c8e69899bcd403ed82bee2599bdd592150e5956.zip
Render line-comments and diffs better
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 78c7d5c..1603d24 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -1670,7 +1670,7 @@ RenderMsg.prototype.lineComment = function (cb) {
}, String(self.c.commitId).substr(0, 8)), ' ',
h('a', {
href: self.toUrl('/git/line-comment/' +
- encodeURIComponent(self.msg.key))
+ encodeURIComponent(self.msg.key || JSON.stringify(self.msg)))
}, h('code', self.c.filePath + ':' + self.c.line))
)),
self.c.text ?