Mercurial > vim
annotate runtime/compiler/jjs.vim @ 24792:91c42289cbe1 v8.2.2934
patch 8.2.2934: ASAN error when using text from the clipboard
Commit: https://github.com/vim/vim/commit/24951a67c24e75ec4ff7506f8e2e789ccd786e89
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jun 4 18:33:49 2021 +0200
patch 8.2.2934: ASAN error when using text from the clipboard
Problem: ASAN error when using text from the clipboard.
Solution: Get width of each character.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 04 Jun 2021 18:45:03 +0200 |
parents | 0db0640e16e0 |
children | e1df51f68736 |
rev | line source |
---|---|
21825 | 1 " Vim compiler file |
2 " Compiler: Nashorn Shell | |
3 " Maintainer: Doug Kearns <dougkearns@gmail.com> | |
4 " Last Change: 2018 Jan 9 | |
5 | |
6 if exists("current_compiler") | |
7 finish | |
8 endif | |
9 let current_compiler = "jjs" | |
10 | |
11 if exists(":CompilerSet") != 2 " older Vim always used :setlocal | |
12 command -nargs=* CompilerSet setlocal <args> | |
13 endif | |
14 | |
15 let s:cpo_save = &cpo | |
16 set cpo&vim | |
17 | |
18 CompilerSet makeprg=jjs | |
19 CompilerSet errorformat=%f:%l:%c\ %m, | |
20 \%f:%l\ %m, | |
21 \%-G%.%# | |
22 | |
23 let &cpo = s:cpo_save | |
24 unlet s:cpo_save |