Mercurial > vim
annotate runtime/compiler/rubyunit.vim @ 14214:68166b841ee9 v8.1.0124
patch 8.1.0124: has('vcon') returns true even for non-win32 terminal
commit https://github.com/vim/vim/commit/d8b37a53bd29cab78c6997aa75207385213f23e2
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jun 28 15:50:28 2018 +0200
patch 8.1.0124: has('vcon') returns true even for non-win32 terminal
Problem: has('vcon') returns true even for non-win32 terminal.
Solution: Check the terminal type. (Nobuhiro Takasaki, closes https://github.com/vim/vim/issues/3106)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 28 Jun 2018 16:00:07 +0200 |
parents | 43efa4f5a8ea |
children | f0f06837a699 |
rev | line source |
---|---|
533 | 1 " Vim compiler file |
833 | 2 " Language: Test::Unit - Ruby Unit Testing Framework |
3 " Maintainer: Doug Kearns <dougkearns@gmail.com> | |
4869 | 4 " URL: https://github.com/vim-ruby/vim-ruby |
833 | 5 " Release Coordinator: Doug Kearns <dougkearns@gmail.com> |
533 | 6 |
7 if exists("current_compiler") | |
8 finish | |
9 endif | |
10 let current_compiler = "rubyunit" | |
11 | |
12 if exists(":CompilerSet") != 2 " older Vim always used :setlocal | |
13 command -nargs=* CompilerSet setlocal <args> | |
14 endif | |
15 | |
16 let s:cpo_save = &cpo | |
17 set cpo-=C | |
18 | |
19 CompilerSet makeprg=testrb | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
4869
diff
changeset
|
20 " CompilerSet makeprg=ruby\ -Itest |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
4869
diff
changeset
|
21 " CompilerSet makeprg=m |
533 | 22 |
23 CompilerSet errorformat=\%W\ %\\+%\\d%\\+)\ Failure:, | |
24 \%C%m\ [%f:%l]:, | |
549 | 25 \%E\ %\\+%\\d%\\+)\ Error:, |
533 | 26 \%C%m:, |
27 \%C\ \ \ \ %f:%l:%.%#, | |
28 \%C%m, | |
29 \%Z\ %#, | |
30 \%-G%.%# | |
31 | |
32 let &cpo = s:cpo_save | |
33 unlet s:cpo_save | |
34 | |
1624 | 35 " vim: nowrap sw=2 sts=2 ts=8: |