X-Git-Url: https://git.cworth.org/git?p=notmuch;a=blobdiff_plain;f=vim%2Fnotmuch.vim;h=0cb94f6c93b542812b0b3942ae77f1ee710c2e5c;hp=25a16e9a4ec5b230d2879e3c5f27f69ee77a756d;hb=468deca60c062b6b3085ff1de41647f41cd6abd1;hpb=2fee62fd1fcaed5c9ec46daa4f24b33a2f310e83 diff --git a/vim/notmuch.vim b/vim/notmuch.vim index 25a16e9a..0cb94f6c 100644 --- a/vim/notmuch.vim +++ b/vim/notmuch.vim @@ -919,7 +919,8 @@ ruby << EOF if mime_type != "text/html" text = decoded else - IO.popen("elinks --dump", "w+") do |pipe| + IO.popen(VIM::evaluate('exists("g:notmuch_html_converter") ? ' + + 'g:notmuch_html_converter : "elinks --dump"'), "w+") do |pipe| pipe.write(decode_body) pipe.close_write text = pipe.read