Mercurial > vim
comparison src/testdir/test_compiler.vim @ 26103:d079ab2ba260 v8.2.3584
patch 8.2.3584: "verbose set efm" reports location of the :compiler command
Commit: https://github.com/vim/vim/commit/58ef8a31d7087d495ab1582be5b7a22796ac2451
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Nov 12 11:25:11 2021 +0000
patch 8.2.3584: "verbose set efm" reports location of the :compiler command
Problem: "verbose set efm" reports the location of the :compiler command.
(Gary Johnson)
Solution: Add the "-keepscript" argument to :command and use it when
defining CompilerSet.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 12 Nov 2021 12:30:05 +0100 |
parents | 7759374c4464 |
children | efc174960b10 |
comparison
equal
deleted
inserted
replaced
26102:eeb8654235f6 | 26103:d079ab2ba260 |
---|---|
18 | 18 |
19 e Xfoo.pl | 19 e Xfoo.pl |
20 compiler perl | 20 compiler perl |
21 call assert_equal('perl', b:current_compiler) | 21 call assert_equal('perl', b:current_compiler) |
22 call assert_fails('let g:current_compiler', 'E121:') | 22 call assert_fails('let g:current_compiler', 'E121:') |
23 | |
24 let verbose_efm = execute('verbose set efm') | |
25 call assert_match('Last set from .*/compiler/perl.vim ', verbose_efm) | |
23 | 26 |
24 call setline(1, ['#!/usr/bin/perl -w', 'use strict;', 'my $foo=1']) | 27 call setline(1, ['#!/usr/bin/perl -w', 'use strict;', 'my $foo=1']) |
25 w! | 28 w! |
26 call feedkeys(":make\<CR>\<CR>", 'tx') | 29 call feedkeys(":make\<CR>\<CR>", 'tx') |
27 call assert_fails('clist', 'E42:') | 30 call assert_fails('clist', 'E42:') |