Skip to content

Commit

Permalink
Fix Highlighting of Message Description
Browse files Browse the repository at this point in the history
If g:notmuch_show_folded_full_headers was set to '0'
msg.full_header_start never got initialized. But we make use of it to
Highlight the regular Header block. So pull initialization out of the
conditional block.
  • Loading branch information
ff2000 committed Dec 22, 2014
1 parent 71a45ed commit 047665e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/notmuch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -586,9 +586,9 @@ def rb_show(thread_id, msg_id)
showheaders.each do |h|
b << "%s: %s" % [h, m.header[h]]
end
nm_m.full_header_start = b.count
if show_full_headers
# Now show the rest in a folded area.
nm_m.full_header_start = b.count
m.header.fields.each do |k|
# Only show the ones we haven't already printed out.
if not showheaders.include?(k.name)
Expand Down

0 comments on commit 047665e

Please sign in to comment.