Mercurial > vim
changeset 22316:d275371fd1e7 v8.2.1707
patch 8.2.1707: small inconsitency in highlight test
Commit: https://github.com/vim/vim/commit/2bbada811625ee53c7bcdf689dbf409e9975ea8f
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 18 21:55:26 2020 +0200
patch 8.2.1707: small inconsitency in highlight test
Problem: Small inconsitency in highlight test.
Solution: Use one argument for :execute. (Antony Scriven, https://github.com/vim/vim/issues/6975)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 18 Sep 2020 22:00:03 +0200 |
parents | 709f96f4db57 |
children | f75c88539e94 |
files | src/testdir/test_highlight.vim src/version.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_highlight.vim +++ b/src/testdir/test_highlight.vim @@ -886,11 +886,11 @@ func Test_highlight_clear_restores_conte let patContextDefault = fnamemodify(scriptContextDefault, ':t') .. ' line 1' let patContextRelink = fnamemodify(scriptContextRelink, ':t') .. ' line 2' - exec "source" scriptContextDefault + exec 'source ' .. scriptContextDefault let hlContextDefault = execute("verbose hi Context") call assert_match(patContextDefault, hlContextDefault) - exec "source" scriptContextRelink + exec 'source ' .. scriptContextRelink let hlContextRelink = execute("verbose hi Context") call assert_match(patContextRelink, hlContextRelink)