mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
runtime(compiler): fix inaccuracies in pandoc compiler (#14467)
as kindly pointed out by @Freed-Wu Signed-off-by: Enno <Konfekt@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
e20c7d7f44
commit
6ce07edd60
@ -9,10 +9,6 @@ if exists("current_compiler")
|
|||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
|
||||||
command -nargs=* CompilerSet setlocal <args>
|
|
||||||
endif
|
|
||||||
|
|
||||||
let s:keepcpo = &cpo
|
let s:keepcpo = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
@ -42,7 +38,7 @@ silent! function s:PandocFiletype(filetype) abort
|
|||||||
elseif index(s:supported_filetypes, &ft) >= 0
|
elseif index(s:supported_filetypes, &ft) >= 0
|
||||||
return ft
|
return ft
|
||||||
else
|
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'
|
return 'markdown'
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user