Mercurial > vim
annotate runtime/syntax/hostsaccess.vim @ 25885:7c640ad754fb v8.2.3476
patch 8.2.3476: renaming a buffer on startup may cause using freed memory
Commit: https://github.com/vim/vim/commit/d3710cf01ef6ab1b2f233866ff01dab76686f642
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Oct 4 23:13:13 2021 +0100
patch 8.2.3476: renaming a buffer on startup may cause using freed memory
Problem: Renaming a buffer on startup may cause using freed memory.
Solution: Check if the buffer is used in a window. (closes https://github.com/vim/vim/issues/8955)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 05 Oct 2021 00:15:04 +0200 |
parents | 43efa4f5a8ea |
children |
rev | line source |
---|---|
2826 | 1 " Vim syntax file |
2 " Language: hosts.deny, hosts.allow configuration files | |
3 " Maintainer: Thilo Six <T.Six@gmx.de> | |
4 " Last Change: 2011 May 01 | |
5 " Derived From: conf.vim | |
6 " Credits: Bram Moolenaar | |
7 " | |
8 " This file is there to get at least a minimal highlighting. | |
9 " A later version may be improved. | |
10 | |
11 | |
12 " Quit when a (custom) syntax file was already loaded | |
13 if exists("b:current_syntax") | |
14 finish | |
15 endif | |
16 | |
17 " For a starter we just use conf.vim for highlighting | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2826
diff
changeset
|
18 runtime! syntax/conf.vim |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2826
diff
changeset
|
19 unlet b:current_syntax |
2826 | 20 |
21 | |
22 let b:current_syntax = "hostsaccess" | |
23 " vim: ts=8 sw=2 |