Mercurial > vim
view runtime/indent/cpp.vim @ 20844:1360541e8c74 v8.2.0974
patch 8.2.0974: Vim9: memory leak when script var has wrong type
Commit: https://github.com/vim/vim/commit/f3decc5830ef8d8d94902b76114935283dd4142e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 13 19:56:38 2020 +0200
patch 8.2.0974: Vim9: memory leak when script var has wrong type
Problem: Vim9: memory leak when script var has wrong type.
Solution: Free the variable name.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 13 Jun 2020 20:00:04 +0200 |
parents | 7bc41231fbc7 |
children | 4027cefc2aab |
line wrap: on
line source
" Vim indent file " Language: C++ " Maintainer: Bram Moolenaar <Bram@vim.org> " Last Change: 2008 Nov 29 " Only load this indent file when no other was loaded. if exists("b:did_indent") finish endif let b:did_indent = 1 " C++ indenting is built-in, thus this is very simple setlocal cindent let b:undo_indent = "setl cin<"