limit preview filetype workaround to help files only

main
bhagwan 3 years ago
parent 7b0e658db5
commit 04912f6eff

@ -336,7 +336,8 @@ function Previewer.buffer_or_file:do_syntax(entry)
))
end
if syntax_limit_reached == 0 then
if entry.filetype and #entry.filetype>0 then
if entry.filetype == 'help' then
-- if entry.filetype and #entry.filetype>0 then
-- filetype was saved from a loaded buffer
-- this helps avoid losing highlights for help buffers
-- which are '.txt' files with 'ft=help'

Loading…
Cancel
Save