vim-patch:6ce07edd600e (#28275)

runtime(compiler): fix inaccuracies in pandoc compiler (vim/vim#14467)

as kindly pointed out by @Freed-Wu

6ce07edd60

Co-authored-by: Enno <Konfekt@users.noreply.github.com>
This commit is contained in:
zeertzjq 2024-04-11 17:59:29 +08:00 committed by GitHub
parent 7aa56370f3
commit 1746b9234c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,10 +9,6 @@ if exists("current_compiler")
finish
endif
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
let s:keepcpo = &cpo
set cpo&vim
@ -42,7 +38,7 @@ silent! function s:PandocFiletype(filetype) abort
elseif index(s:supported_filetypes, &ft) >= 0
return ft
else
echomsg 'Unsupported filetype: ' . a:filetype ', falling back to Markdown as input format!'
echomsg 'Unsupported filetype: ' . ft . ', falling back to Markdown as input format!'
return 'markdown'
endif
endfunction