runtime(compiler): fix inaccuracies in pandoc compiler (#14467) Commit: https://github.com/vim/vim/commit/6ce07edd600e73e5aaebeafead6e82b41bd00e12 Author: Enno <konf...@users.noreply.github.com> Date: Tue Apr 9 21:26:55 2024 +0200
runtime(compiler): fix inaccuracies in pandoc compiler (https://github.com/vim/vim/issues/14467) as kindly pointed out by @Freed-Wu Signed-off-by: Enno <konf...@users.noreply.github.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/compiler/pandoc.vim b/runtime/compiler/pandoc.vim index a536257eb..1b171a1cb 100644 --- a/runtime/compiler/pandoc.vim +++ b/runtime/compiler/pandoc.vim @@ -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 @@ -40,9 +36,9 @@ silent! function s:PandocFiletype(filetype) abort elseif ft ==# 'text' || empty(ft) return 'markdown' elseif index(s:supported_filetypes, &ft) >= 0 - return ft + 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 -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/E1ruHAT-000kfq-PA%40256bit.org.