Skip to content

Commit

Permalink
issue_note: Fix quoting of replied comment
Browse files Browse the repository at this point in the history
Comment paragraphs specified via -m on the command line take precedent
over quoting the replied comment. However if no -m flag is specified,
the corresponding variable is an empty array, not nil. As a result,
we never reach the code that marks the replied comment as quote.
  • Loading branch information
fmuellner committed Dec 13, 2020
1 parent c17efd0 commit 6287135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/issue_note.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func replyNote(rn string, isMR bool, idNum int, reply int, quote bool, update bo
}

body := ""
if msgs != nil {
if len(msgs) != 0 {
body, err = noteMsg(msgs, isMR, note.Body)
if err != nil {
_, f, l, _ := runtime.Caller(0)
Expand Down

0 comments on commit 6287135

Please sign in to comment.