]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(compiler): fix inaccuracies in pandoc compiler (#14467)
authorEnno <Konfekt@users.noreply.github.com>
Tue, 9 Apr 2024 19:26:55 +0000 (21:26 +0200)
committerGitHub <noreply@github.com>
Tue, 9 Apr 2024 19:26:55 +0000 (21:26 +0200)
as kindly pointed out by @Freed-Wu

Signed-off-by: Enno <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/compiler/pandoc.vim

index a536257eba8bf0df86e18ea1e2eb4e5ce297921d..1b171a1cb8323c5c8fe6f9dce1271b6e92631b33 100644 (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
 
@@ -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