Mercurial > vim
annotate runtime/syntax/qf.vim @ 30487:79e2d9b7780c v9.0.0579
patch 9.0.0579: using freed memory when 'tagfunc' wipes out buffer
Commit: https://github.com/vim/vim/commit/0ff01835a40f549c5c4a550502f62a2ac9ac447c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 24 19:20:30 2022 +0100
patch 9.0.0579: using freed memory when 'tagfunc' wipes out buffer
Problem: Using freed memory when 'tagfunc' wipes out buffer that holds
'complete'.
Solution: Make a copy of the option. Make sure cursor position is valid.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 24 Sep 2022 20:30:03 +0200 |
parents | 3fc0f57ecb91 |
children | 4027cefc2aab |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: Quickfix window | |
3 " Maintainer: Bram Moolenaar <Bram@vim.org> | |
4 " Last change: 2001 Jan 15 | |
5 | |
6 " Quit when a syntax file was already loaded | |
7 if exists("b:current_syntax") | |
8 finish | |
9 endif | |
10 | |
11 " A bunch of useful C keywords | |
12 syn match qfFileName "^[^|]*" nextgroup=qfSeparator | |
13 syn match qfSeparator "|" nextgroup=qfLineNr contained | |
14 syn match qfLineNr "[^|]*" contained contains=qfError | |
15 syn match qfError "error" contained | |
16 | |
17 " The default highlighting. | |
18 hi def link qfFileName Directory | |
19 hi def link qfLineNr LineNr | |
20 hi def link qfError Error | |
21 | |
22 let b:current_syntax = "qf" | |
23 | |
24 " vim: ts=8 |