Mercurial > vim
view runtime/compiler/cs.vim @ 22707:9ff187b1652e v8.2.1902
patch 8.2.1902: default option values changed with :badd for existing buffer
Commit: https://github.com/vim/vim/commit/e974fa7b2b98e53a59d5ef16a6a1291f12a32e33
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 25 15:02:51 2020 +0100
patch 8.2.1902: default option values changed with :badd for existing buffer
Problem: Default option values are changed when using :badd for an existing
buffer.
Solution: When calling buflist_new() pass a zero line number. (closes #7195)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 25 Oct 2020 15:15:03 +0100 |
parents | 2704c4e3e20a |
children | e1df51f68736 |
line wrap: on
line source
" Vim compiler file " Compiler: Microsoft Visual Studio C# " Maintainer: Yichao Zhou (broken.zhou@gmail.com) " Previous Maintainer: Joseph H. Yao (hyao@sina.com) " Last Change: Jul 22, 2019 if exists("current_compiler") finish endif let current_compiler = "cs" let s:keepcpo= &cpo set cpo&vim if exists(":CompilerSet") != 2 " older Vim always used :setlocal command -nargs=* CompilerSet setlocal <args> endif CompilerSet errorformat& CompilerSet errorformat+=%f(%l\\,%v):\ %t%*[^:]:\ %m, \%trror%*[^:]:\ %m, \%tarning%*[^:]:\ %m CompilerSet makeprg=csc\ %:S let &cpo = s:keepcpo unlet s:keepcpo