diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-04-06 05:44:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-06 05:44:37 +0800 |
commit | 66568ed4521972cd34d9f635511b979481e2dc01 (patch) | |
tree | e63a099ea87db2f96b74c11bffbe1f6833a51462 /runtime/compiler/tex.vim | |
parent | 7098341387346a95647e3521a4c30e904fc0ac50 (diff) | |
download | rneovim-66568ed4521972cd34d9f635511b979481e2dc01.tar.gz rneovim-66568ed4521972cd34d9f635511b979481e2dc01.tar.bz2 rneovim-66568ed4521972cd34d9f635511b979481e2dc01.zip |
vim-patch:b73faa1c02d0 (#28193)
runtime: fix :compiler leaving behind a g:makeprg variable (vim/vim#14414)
Problem: :compiler may leave behind a g:makeprg variable after vim/vim#14336.
Solution: Use a script local variable.
https://github.com/vim/vim/commit/b73faa1c02d0911a60bddd1ba343cf620f2cd124
Also apply previously omitted change to compiler/context.vim.
Diffstat (limited to 'runtime/compiler/tex.vim')
-rw-r--r-- | runtime/compiler/tex.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/compiler/tex.vim b/runtime/compiler/tex.vim index 9d8c66056c..282b3a0588 100644 --- a/runtime/compiler/tex.vim +++ b/runtime/compiler/tex.vim @@ -4,6 +4,7 @@ " Contributors: Enno Nagel " Last Change: 2024 Mar 29 " 2024 Apr 03 by The Vim Project (removed :CompilerSet definition) +" 2024 Apr 05 by The Vim Project (avoid leaving behind g:makeprg) if exists("current_compiler") finish @@ -25,8 +26,8 @@ if exists('b:tex_ignore_makefile') || exists('g:tex_ignore_makefile') || else let current_compiler = "latex" endif - let makeprg=current_compiler .. ' -interaction=nonstopmode' - execute 'CompilerSet makeprg=' .. escape(makeprg, ' ') + let s:makeprg=current_compiler .. ' -interaction=nonstopmode' + execute 'CompilerSet makeprg=' .. escape(s:makeprg, ' ') else let current_compiler = 'make' endif |