Use proper buffer filename rather than name in mime.kak

This commit is contained in:
Maxime Coste 2014-02-27 06:43:33 +00:00
parent c49e79c9e8
commit 6585000b66

View File

@ -1,5 +1,5 @@
decl str mimetype "text/plain"
hook global BufOpen .* %{
set buffer mimetype %sh{file -b --mime-type ${kak_bufname} }
set buffer mimetype %sh{file -b --mime-type ${kak_buffile} }
}