vim: trivial cleanup
authorFelipe Contreras <felipe.contreras@gmail.com>
Mon, 14 Oct 2013 05:54:13 +0000 (00:54 -0500)
committerFelipe Contreras <felipe.contreras@gmail.com>
Wed, 20 Nov 2013 13:23:29 +0000 (07:23 -0600)
Using $email_address is more straight forward.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
vim/notmuch.vim

index cf829a679b4049146f9311b5d6c449296767d165..9a45300f2683e210cbd21bf0446585819d74492d 100644 (file)
@@ -566,7 +566,7 @@ ruby << EOF
 
                        f.flush
 
-                       VIM::command("let s:reply_from='%s'" % reply.from.first.to_s)
+                       VIM::command("let s:reply_from='%s'" % $email_address)
                        VIM::command("call s:new_file_buffer('compose', '#{f.path}')")
                        VIM::command("call cursor(#{old_count}, 0)")
                end