aboutsummaryrefslogtreecommitdiff
path: root/runtime/compiler/tex.vim
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-03-31 18:38:55 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-04-01 00:48:30 +0200
commit6b9a808d13b0d2857228a47511355fd6e12709ed (patch)
tree2123a15f3c9da5ea2726279df2e807fa5528e5ee /runtime/compiler/tex.vim
parent1570cfb6384e972a8f2797a75cd2515e53ec2cf0 (diff)
downloadrneovim-6b9a808d13b0d2857228a47511355fd6e12709ed.tar.gz
rneovim-6b9a808d13b0d2857228a47511355fd6e12709ed.tar.bz2
rneovim-6b9a808d13b0d2857228a47511355fd6e12709ed.zip
vim-patch:18d730d7b572
runtime(compilers): ensure compiler! sets global options (vim/vim#14336) Previously some options were only set locally by &l:makeprg/errorformat This suffices for :compiler (without a trailing bang) but falls short for :compiler! that sets &g:makeprg/errorformat as well Also apply kind suggestions by @dkearns and @lifepillar https://github.com/vim/vim/commit/18d730d7b5728c8f87272ac7047d86354013eeb9 omit context.vim (vim9script only) Co-authored-by: Enno <Konfekt@users.noreply.github.com>
Diffstat (limited to 'runtime/compiler/tex.vim')
-rw-r--r--runtime/compiler/tex.vim6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/compiler/tex.vim b/runtime/compiler/tex.vim
index 65e15cf6e2..0925d17680 100644
--- a/runtime/compiler/tex.vim
+++ b/runtime/compiler/tex.vim
@@ -1,7 +1,8 @@
" Vim compiler file
" Compiler: TeX
" Maintainer: Artem Chuprina <ran@ran.pp.ru>
-" Last Change: 2012 Apr 30
+" Contributors: Enno Nagel
+" Last Change: 2024 Mar 29
if exists("current_compiler")
finish
@@ -27,7 +28,8 @@ if exists('b:tex_ignore_makefile') || exists('g:tex_ignore_makefile') ||
else
let current_compiler = "latex"
endif
- let &l:makeprg=current_compiler.' -interaction=nonstopmode'
+ let makeprg=current_compiler .. ' -interaction=nonstopmode'
+ execute 'CompilerSet makeprg=' .. escape(makeprg, ' ')
else
let current_compiler = 'make'
endif