Mercurial > vim
annotate runtime/compiler/cs.vim @ 14077:873542706b0b v8.1.0056
patch 8.1.0056: crash when using :hardcopy with illegal byte
commit https://github.com/vim/vim/commit/43dee181f596c81b99e200b6cdfeb02ecfed42c8
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 16 14:44:11 2018 +0200
patch 8.1.0056: crash when using :hardcopy with illegal byte
Problem: Crash when using :hardcopy with illegal byte.
Solution: Check for string_convert() returning NULL. (Dominique Pelle)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 16 Jun 2018 14:45:05 +0200 |
parents | d1e4abe8342c |
children | 2704c4e3e20a |
rev | line source |
---|---|
7 | 1 " Vim compiler file |
2788 | 2 " Compiler: Microsoft Visual Studio C# |
3 " Maintainer: Zhou YiChao (broken.zhou@gmail.com) | |
4 " Previous Maintainer: Joseph H. Yao (hyao@sina.com) | |
3496
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2788
diff
changeset
|
5 " Last Change: 2012 Apr 30 |
7 | 6 |
7 if exists("current_compiler") | |
8 finish | |
9 endif | |
10 let current_compiler = "cs" | |
3496
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2788
diff
changeset
|
11 let s:keepcpo= &cpo |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2788
diff
changeset
|
12 set cpo&vim |
7 | 13 |
14 if exists(":CompilerSet") != 2 " older Vim always used :setlocal | |
15 command -nargs=* CompilerSet setlocal <args> | |
16 endif | |
17 | |
18 CompilerSet errorformat& | |
2788 | 19 CompilerSet errorformat+=%f(%l\\,%v):\ %t%*[^:]:\ %m, |
20 \%trror%*[^:]:\ %m, | |
21 \%tarning%*[^:]:\ %m | |
7 | 22 |
23 CompilerSet makeprg=csc\ % | |
3496
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2788
diff
changeset
|
24 |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2788
diff
changeset
|
25 let &cpo = s:keepcpo |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2788
diff
changeset
|
26 unlet s:keepcpo |