Mercurial > vim
annotate runtime/compiler/javac.vim @ 20001:502a6c9b3974 v8.2.0556
patch 8.2.0556: Vim9: memory leak when finding common type
Commit: https://github.com/vim/vim/commit/c5f1ef53c24cc0c9f7b2131609e916f913634feb
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 12 17:11:27 2020 +0200
patch 8.2.0556: Vim9: memory leak when finding common type
Problem: Vim9: memory leak when finding common type.
Solution: Store allocated memory in type growarray.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 12 Apr 2020 17:15:03 +0200 |
parents | f7add3891e95 |
children | d4c7b3e9cd17 |
rev | line source |
---|---|
7 | 1 " Vim compiler file |
5161
f7add3891e95
Updated runtime files. Fix NL translations.
Bram Moolenaar <bram@vim.org>
parents:
36
diff
changeset
|
2 " Compiler: javac |
f7add3891e95
Updated runtime files. Fix NL translations.
Bram Moolenaar <bram@vim.org>
parents:
36
diff
changeset
|
3 " Maintainer: Doug Kearns <dougkearns@gmail.com> |
f7add3891e95
Updated runtime files. Fix NL translations.
Bram Moolenaar <bram@vim.org>
parents:
36
diff
changeset
|
4 " Last Change: 2004 Nov 27 |
7 | 5 |
6 if exists("current_compiler") | |
7 finish | |
8 endif | |
9 let current_compiler = "javac" | |
10 | |
11 if exists(":CompilerSet") != 2 " older Vim always used :setlocal | |
12 command -nargs=* CompilerSet setlocal <args> | |
13 endif | |
14 | |
15 CompilerSet makeprg=javac | |
16 | |
17 CompilerSet errorformat=%E%f:%l:\ %m,%-Z%p^,%-C%.%#,%-G%.%# |