]> git.cworth.org Git - sup/commitdiff
bugfix for rubyforge bug #13891: ctrl-g in attachment filename prompt
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 14 Sep 2007 01:53:13 +0000 (01:53 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 14 Sep 2007 01:53:13 +0000 (01:53 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@569 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/modes/edit-message-mode.rb

index 655ca204ed079231cc2eba4cb5a02f244f4f3c05..9115e10562a59a86343f8cbdfbaa1e844a2f9333 100644 (file)
@@ -115,6 +115,7 @@ EOS
 
   def attach_file
     fn = BufferManager.ask_for_filename :attachment, "File name (enter for browser): "
+    return unless fn
     @attachments << Pathname.new(fn)
     update
   end