Skip to content

Commit 624c1d8

Browse files
committed
Fix one encoding error
1 parent a5d1370 commit 624c1d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/notmuch.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def search_render(search)
201201
authors = e.authors.to_utf8.split(/[,|]/).map { |a| author_filter(a) }.join(',')
202202
date = Time.at(e.newest_date).strftime(date_fmt)
203203
subject = e.messages.first['subject']
204-
subject = Mail::Field.new('subject', subject).to_s
204+
subject = Mail::Field.new('subject', subject).to_s.to_utf8
205205
buffer << '%-12s %3s %-20.20s | %s (%s)' % [date, e.matched_messages, authors, subject, e.tags]
206206
$curbuf.threads << e.thread_id
207207
end

0 commit comments

Comments
 (0)