diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-26 11:15:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-26 11:15:27 +0800 |
commit | 84465a8c1583f444d4365b2a70e03cd38ebe7f81 (patch) | |
tree | 317ee1d3e2324365f4a2f1e17939a39e729710c8 | |
parent | 3f478547cfec72b9d3eb53efde2df45d85c44c18 (diff) | |
download | rneovim-84465a8c1583f444d4365b2a70e03cd38ebe7f81.tar.gz rneovim-84465a8c1583f444d4365b2a70e03cd38ebe7f81.tar.bz2 rneovim-84465a8c1583f444d4365b2a70e03cd38ebe7f81.zip |
vim-patch:8.2.1707: small inconsitency in highlight test (#21193)
Problem: Small inconsitency in highlight test.
Solution: Use one argument for :execute. (Antony Scriven, vim/vim#6975)
https://github.com/vim/vim/commit/2bbada811625ee53c7bcdf689dbf409e9975ea8f
-rw-r--r-- | src/nvim/testdir/test_highlight.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_highlight.vim b/src/nvim/testdir/test_highlight.vim index d618637d63..8a102f2e65 100644 --- a/src/nvim/testdir/test_highlight.vim +++ b/src/nvim/testdir/test_highlight.vim @@ -819,11 +819,11 @@ func Test_highlight_clear_restores_context() 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) |