annotate runtime/indent/cuda.vim @ 16680:c263acbbd961
v8.1.1342
patch 8.1.1342: using freed memory when joining line with text property
commit https://github.com/vim/vim/commit/787880a86dbcb79cdf6e8241b1d99ac4a7acbc09
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri May 17 20:17:40 2019 +0200
patch 8.1.1342: using freed memory when joining line with text property
Problem: Using freed memory when joining line with text property.
Solution: Use already computed length.
author |
Bram Moolenaar <Bram@vim.org> |
date |
Fri, 17 May 2019 20:30:06 +0200 |
parents |
7bc41231fbc7 |
children |
4027cefc2aab |
rev |
line source |
2034
|
1 " Vim indent file
|
|
2 " Language: CUDA
|
|
3 " Maintainer: Bram Moolenaar <Bram@vim.org>
|
|
4 " Last Change: 2008 Nov 29
|
|
5
|
|
6 " Only load this indent file when no other was loaded.
|
|
7 if exists("b:did_indent")
|
|
8 finish
|
|
9 endif
|
|
10 let b:did_indent = 1
|
|
11
|
|
12 " It's just like C indenting
|
|
13 setlocal cindent
|
|
14
|
|
15 let b:undo_indent = "setl cin<"
|