view runtime/indent/c.vim @ 21000:3b29ac3394dc v8.2.1051

patch 8.2.1051: crash when changing a list while using reduce() on it Commit: https://github.com/vim/vim/commit/ca275a05d8b79f6a9101604fdede2373d0dea44e Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 24 22:07:46 2020 +0200 patch 8.2.1051: crash when changing a list while using reduce() on it Problem: Crash when changing a list while using reduce() on it. Solution: Lock the list. (closes https://github.com/vim/vim/issues/6330)
author Bram Moolenaar <Bram@vim.org>
date Wed, 24 Jun 2020 22:15:04 +0200
parents fca8a9b65afa
children 4027cefc2aab
line wrap: on
line source

" Vim indent file
" Language:	C
" Maintainer:	Bram Moolenaar <Bram@vim.org>
" Last Change:	2005 Mar 27

" 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<"