Mercurial > vim
annotate runtime/compiler/xmlwf.vim @ 32401:3bf4736649b7 v9.0.1532
patch 9.0.1532: crash when expanding "~" in substitute causes very long text
Commit: https://github.com/vim/vim/commit/ab9a2d884b3a4abe319606ea95a5a6d6b01cd73a
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 9 21:15:30 2023 +0100
patch 9.0.1532: crash when expanding "~" in substitute causes very long text
Problem: Crash when expanding "~" in substitute causes very long text.
Solution: Limit the text length to MAXCOL.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 09 May 2023 22:30:04 +0200 |
parents | 2704c4e3e20a |
children | e1df51f68736 |
rev | line source |
---|---|
7 | 1 " Vim Compiler File |
2 " Compiler: xmlwf | |
3 " Maintainer: Robert Rowsome <rowsome@wam.umd.edu> | |
17571 | 4 " Last Change: 2019 Jul 23 |
7 | 5 |
6 if exists("current_compiler") | |
7 finish | |
8 endif | |
9 let current_compiler = "xmlwf" | |
10 | |
11 let s:cpo_save = &cpo | |
12 set cpo&vim | |
13 | |
14 if exists(":CompilerSet") != 2 " older Vim always used :setlocal | |
15 command -nargs=* CompilerSet setlocal <args> | |
16 endif | |
17 | |
17571 | 18 CompilerSet makeprg=xmlwf\ %:S |
7 | 19 |
20 CompilerSet errorformat=%f:%l%c:%m | |
21 | |
22 let &cpo = s:cpo_save | |
23 unlet s:cpo_save |