]> git.cworth.org Git - sup/commit
fix exception when editting an empty MULTI_HEADER
authorBen Walton <bwalton@artsci.utoronto.ca>
Fri, 16 May 2008 16:52:11 +0000 (12:52 -0400)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Mon, 19 May 2008 15:10:08 +0000 (08:10 -0700)
commit692cd5119c0cd2d1455577c3e61eba27a3de89b2
treeb84e8873398f349ca82c63bc0e445ffdf24b713b
parent5281145c4ecb5295fcdc87b5043bd8c525ccd1aa
fix exception when editting an empty MULTI_HEADER

In edit-message-mode, an exception is generated by pressing 'c' to edit the Cc
field when no value currently exists.  This is due to calling Array.join() on
nil.  This patch addresses the execption by forcing an empty array when the
current value is nil.
lib/sup/modes/edit-message-mode.rb