Mercurial > vim
view runtime/compiler/dartfmt.vim @ 26406:fcc57227e99b v8.2.3734
patch 8.2.3734: Vim9: crash when no pattern match found
Commit: https://github.com/vim/vim/commit/01a4dcbceefa99696bd1ef8631c3f7ce9f6e0cc2
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Dec 4 13:15:10 2021 +0000
patch 8.2.3734: Vim9: crash when no pattern match found
Problem: Vim9: crash when no pattern match found.
Solution: Check for error.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 04 Dec 2021 14:30:03 +0100 |
parents | d4c7b3e9cd17 |
children | e1df51f68736 |
line wrap: on
line source
" Vim compiler file " Compiler: Dart Formatter " Maintainer: Doug Kearns <dougkearns@gmail.com> " Last Change: 2019 May 08 if exists("current_compiler") finish endif let current_compiler = "dartfmt" if exists(":CompilerSet") != 2 " older Vim always used :setlocal command -nargs=* CompilerSet setlocal <args> endif let s:cpo_save = &cpo set cpo&vim CompilerSet makeprg=dartfmt CompilerSet errorformat=%Eline\ %l\\,\ column\ %c\ of\ %f:\ %m, \%Z\ %\\{3}│\ %\\+^%\\+, \%C%.%#, \%-G%.%# let &cpo = s:cpo_save unlet s:cpo_save