Fix editing inline comments

An earlier change broke editing comments.

Change-Id: I7c10d29088bf15145c864843529c243c7c0c1169
This commit is contained in:
James E. Blair 2014-04-30 09:21:33 -07:00
parent 437bf21383
commit f15feec7bf
1 changed files with 5 additions and 2 deletions

View File

@ -133,6 +133,9 @@ class DiffView(urwid.WidgetWrap):
key += '-' + str(comment.line)
key += '-' + str(comment.file)
comment_list = comment_lists.get(key, [])
if comment.pending:
message = comment.message
else:
message = [('comment-name', comment.name),
('comment', u': '+comment.message)]
comment_list.append((comment.key, message))