diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-11-12 11:25:11 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-11-12 11:25:11 +0000 |
commit | 58ef8a31d7087d495ab1582be5b7a22796ac2451 (patch) | |
tree | dbae171d4c49dbe2ba7e89ef94561fa357610e72 /src/testdir/test_compiler.vim | |
parent | 0c71114aede81a209b7efc126b4bf19f11d58955 (diff) |
patch 8.2.3584: "verbose set efm" reports location of the :compiler commandv8.2.3584
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.
Diffstat (limited to 'src/testdir/test_compiler.vim')
-rw-r--r-- | src/testdir/test_compiler.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/test_compiler.vim b/src/testdir/test_compiler.vim index ede307fbfc..09c03f7f20 100644 --- a/src/testdir/test_compiler.vim +++ b/src/testdir/test_compiler.vim @@ -21,6 +21,9 @@ func Test_compiler() call assert_equal('perl', b:current_compiler) call assert_fails('let g:current_compiler', 'E121:') + let verbose_efm = execute('verbose set efm') + call assert_match('Last set from .*/compiler/perl.vim ', verbose_efm) + call setline(1, ['#!/usr/bin/perl -w', 'use strict;', 'my $foo=1']) w! call feedkeys(":make\<CR>\<CR>", 'tx') |