Browse Source

Fix editing inline comments

An earlier change broke editing comments.

Change-Id: I7c10d29088bf15145c864843529c243c7c0c1169
changes/91/391991/1
James E. Blair 8 years ago
parent
commit
f15feec7bf
  1. 7
      gertty/view/diff.py

7
gertty/view/diff.py

@ -133,8 +133,11 @@ class DiffView(urwid.WidgetWrap):
key += '-' + str(comment.line)
key += '-' + str(comment.file)
comment_list = comment_lists.get(key, [])
message = [('comment-name', comment.name),
('comment', u': '+comment.message)]
if comment.pending:
message = comment.message
else:
message = [('comment-name', comment.name),
('comment', u': '+comment.message)]
comment_list.append((comment.key, message))
comment_lists[key] = comment_list
repo = self.app.getRepo(self.project_name)

Loading…
Cancel
Save