diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-04-11 17:59:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-11 17:59:29 +0800 |
commit | 1746b9234c2d38ff7db98eb8c71f1fa5e8d47616 (patch) | |
tree | b0728955abe49c53f56d819c2c25b8a0e8bcd336 | |
parent | 7aa56370f326f5f1b3fdfa1c79bbffc7cc6ae267 (diff) | |
download | rneovim-1746b9234c2d38ff7db98eb8c71f1fa5e8d47616.tar.gz rneovim-1746b9234c2d38ff7db98eb8c71f1fa5e8d47616.tar.bz2 rneovim-1746b9234c2d38ff7db98eb8c71f1fa5e8d47616.zip |
vim-patch:6ce07edd600e (#28275)
runtime(compiler): fix inaccuracies in pandoc compiler (vim/vim#14467)
as kindly pointed out by @Freed-Wu
https://github.com/vim/vim/commit/6ce07edd600e73e5aaebeafead6e82b41bd00e12
Co-authored-by: Enno <Konfekt@users.noreply.github.com>
-rw-r--r-- | runtime/compiler/pandoc.vim | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/runtime/compiler/pandoc.vim b/runtime/compiler/pandoc.vim index a536257eba..1b171a1cb8 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 |